mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 22:34:18 +01:00
Make window stacking level changes to match GNUstep.
This commit is contained in:
@@ -42,25 +42,41 @@ typedef struct {
|
||||
#define ClientMessageMask (1L<<30)
|
||||
|
||||
|
||||
/* window stacking level */
|
||||
/*
|
||||
* Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
|
||||
* NSDesktopWindowLevel intended to be the level at which things
|
||||
* on the desktop sit ... so you should be able
|
||||
* to put a desktop background just below it.
|
||||
*
|
||||
* Applications are actually permitted to use any value in the
|
||||
* range INT_MIN+1 to INT_MAX
|
||||
*/
|
||||
enum {
|
||||
WMNormalWindowLevel = 0,
|
||||
WMFloatingWindowLevel = 3,
|
||||
WMDockWindowLevel = 5,
|
||||
WMSubmenuWindowLevel = 10,
|
||||
WMMainMenuWindowLevel = 20
|
||||
WMDesktopWindowLevel = -1000, /* GNUstep addition */
|
||||
WMNormalWindowLevel = 0,
|
||||
WMFloatingWindowLevel = 3,
|
||||
WMSubmenuWindowLevel = 3,
|
||||
WMTornOffMenuWindowLevel = 3,
|
||||
WMMainMenuWindowLevel = 20,
|
||||
WMDockWindowLevel = 21, /* Deprecated - use NSStatusWindowLevel */
|
||||
WMStatusWindowLevel = 21,
|
||||
WMModalPanelWindowLevel = 100,
|
||||
WMPopUpMenuWindowLevel = 101,
|
||||
WMScreenSaverWindowLevel = 1000
|
||||
};
|
||||
|
||||
|
||||
/* window attributes */
|
||||
enum {
|
||||
WMBorderlessWindowMask = 0,
|
||||
WMTitledWindowMask = 1,
|
||||
WMClosableWindowMask = 2,
|
||||
WMMiniaturizableWindowMask = 4,
|
||||
WMResizableWindowMask = 8
|
||||
WMResizableWindowMask = 8,
|
||||
WMIconWindowMask = 64,
|
||||
WMMiniWindowMask = 128
|
||||
};
|
||||
|
||||
|
||||
/* button types */
|
||||
typedef enum {
|
||||
/* 0 is reserved for internal use */
|
||||
|
||||
Reference in New Issue
Block a user