2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #define MAX_HORIZONTAL (1 << 0)
27 #define MAX_VERTICAL (1 << 1)
28 #define MAX_LEFTHALF (1 << 2)
29 #define MAX_RIGHTHALF (1 << 3)
30 #define MAX_MAXIMUS (1 << 4)
31 #define MAX_IGNORE_XINERAMA (1 << 5)
32 #define MAX_KEYBOARD (1 << 6)
34 #define SAVE_GEOMETRY_X (1 << 0)
35 #define SAVE_GEOMETRY_Y (1 << 1)
36 #define SAVE_GEOMETRY_WIDTH (1 << 2)
37 #define SAVE_GEOMETRY_HEIGHT (1 << 3)
38 #define SAVE_GEOMETRY_ALL SAVE_GEOMETRY_X | SAVE_GEOMETRY_Y | SAVE_GEOMETRY_WIDTH | SAVE_GEOMETRY_HEIGHT
40 void wSetFocusTo(WScreen
*scr
, WWindow
*wwin
);
42 int wMouseMoveWindow(WWindow
*wwin
, XEvent
*ev
);
43 int wKeyboardMoveResizeWindow(WWindow
*wwin
);
45 void wMouseResizeWindow(WWindow
*wwin
, XEvent
*ev
);
47 void wShadeWindow(WWindow
*wwin
);
48 void wUnshadeWindow(WWindow
*wwin
);
50 void wIconifyWindow(WWindow
*wwin
);
51 void wDeiconifyWindow(WWindow
*wwin
);
53 void wSelectWindows(WScreen
*scr
, XEvent
*ev
);
55 void wSelectWindow(WWindow
*wwin
, Bool flag
);
56 void wUnselectWindows(WScreen
*scr
);
58 void wMaximizeWindow(WWindow
*wwin
, int directions
);
59 void wUnmaximizeWindow(WWindow
*wwin
);
60 void handleMaximize(WWindow
*wwin
, int directions
);
62 void wHideAll(WScreen
*src
);
63 void wHideOtherApplications(WWindow
*wwin
);
64 void wShowAllWindows(WScreen
*scr
);
66 void wHideApplication(WApplication
*wapp
);
67 void wUnhideApplication(WApplication
*wapp
, Bool miniwindows
,
68 Bool bringToCurrentWS
);
70 void wRefreshDesktop(WScreen
*scr
);
72 void wArrangeIcons(WScreen
*scr
, Bool arrangeAll
);
74 void wMakeWindowVisible(WWindow
*wwin
);
76 void wFullscreenWindow(WWindow
*wwin
);
77 void wUnfullscreenWindow(WWindow
*wwin
);
79 void animateResize(WScreen
*scr
, int x
, int y
, int w
, int h
, int fx
, int fy
, int fw
, int fh
);
80 void update_saved_geometry(WWindow
*wwin
);