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_TOPHALF (1 << 4)
31 #define MAX_BOTTOMHALF (1 << 5)
32 #define MAX_MAXIMUS (1 << 6)
33 #define MAX_IGNORE_XINERAMA (1 << 7)
34 #define MAX_KEYBOARD (1 << 8)
36 #define SAVE_GEOMETRY_X (1 << 0)
37 #define SAVE_GEOMETRY_Y (1 << 1)
38 #define SAVE_GEOMETRY_WIDTH (1 << 2)
39 #define SAVE_GEOMETRY_HEIGHT (1 << 3)
40 #define SAVE_GEOMETRY_ALL SAVE_GEOMETRY_X | SAVE_GEOMETRY_Y | SAVE_GEOMETRY_WIDTH | SAVE_GEOMETRY_HEIGHT
42 void wSetFocusTo(WScreen
*scr
, WWindow
*wwin
);
44 int wMouseMoveWindow(WWindow
*wwin
, XEvent
*ev
);
45 int wKeyboardMoveResizeWindow(WWindow
*wwin
);
47 void wMouseResizeWindow(WWindow
*wwin
, XEvent
*ev
);
49 void wShadeWindow(WWindow
*wwin
);
50 void wUnshadeWindow(WWindow
*wwin
);
52 void wIconifyWindow(WWindow
*wwin
);
53 void wDeiconifyWindow(WWindow
*wwin
);
55 void wSelectWindows(WScreen
*scr
, XEvent
*ev
);
57 void wSelectWindow(WWindow
*wwin
, Bool flag
);
58 void wUnselectWindows(WScreen
*scr
);
60 void wMaximizeWindow(WWindow
*wwin
, int directions
);
61 void wUnmaximizeWindow(WWindow
*wwin
);
62 void handleMaximize(WWindow
*wwin
, int directions
);
64 void wHideAll(WScreen
*src
);
65 void wHideOtherApplications(WWindow
*wwin
);
66 void wShowAllWindows(WScreen
*scr
);
68 void wHideApplication(WApplication
*wapp
);
69 void wUnhideApplication(WApplication
*wapp
, Bool miniwindows
,
70 Bool bringToCurrentWS
);
72 void wRefreshDesktop(WScreen
*scr
);
74 void wArrangeIcons(WScreen
*scr
, Bool arrangeAll
);
76 void wMakeWindowVisible(WWindow
*wwin
);
78 void wFullscreenWindow(WWindow
*wwin
);
79 void wUnfullscreenWindow(WWindow
*wwin
);
81 void animateResize(WScreen
*scr
, int x
, int y
, int w
, int h
, int fx
, int fy
, int fw
, int fh
);
82 void update_saved_geometry(WWindow
*wwin
);