]> Dogcows Code - chaz/openbox/blob - openbox/stacking.h
rename "Slit" to "Dock".
[chaz/openbox] / openbox / stacking.h
1 #ifndef __stacking_h
2 #define __stacking_h
3
4 #include "window.h"
5
6 #include <glib.h>
7 #include <X11/Xlib.h>
8
9 /*! The possible stacking layers a client window can be a part of */
10 typedef enum {
11 Layer_Desktop, /*!< 0 - desktop windows */
12 Layer_Below, /*!< 1 - normal windows w/ below */
13 Layer_Normal, /*!< 2 - normal windows */
14 Layer_Above, /*!< 3 - normal windows w/ above */
15 Layer_Top, /*!< 4 - always-on-top-windows (docks?) */
16 Layer_Fullscreen, /*!< 5 - fullscreeen windows */
17 Layer_Internal /*!< 6 - openbox windows/menus */
18 } StackLayer;
19
20 /* list of ObWindow*s in stacking order from highest to lowest */
21 extern GList *stacking_list;
22
23 /*! Sets the window stacking list on the root window from the
24 stacking_list */
25 void stacking_set_list();
26
27 void stacking_add(ObWindow *win);
28 void stacking_add_nonintrusive(ObWindow *win);
29 #define stacking_remove(win) stacking_list = g_list_remove(stacking_list, win);
30
31 /*! Raises a window above all others in its stacking layer
32 raiseWindow has a couple of constraints that lowerWindow does not.<br>
33 1) raiseWindow can be called after changing a Window's stack layer, and
34 the list will be reorganized properly.<br>
35 2) raiseWindow guarantees that XRestackWindows() will <i>always</i> be
36 called for the specified window.
37 */
38 void stacking_raise(ObWindow *window);
39
40 /*! Lowers a client window below all others in its stacking layer */
41 void stacking_lower(ObWindow *window);
42
43 #endif
This page took 0.034358 seconds and 4 git commands to generate.