1 /* GNUstep.h-- stuff for compatibility with GNUstep applications
3 * Window Maker window manager
5 * Copyright (c) 1997-2003 Alfredo K. Kojima
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include <X11/Xproto.h>
29 #define GNUSTEP_WM_MINIATURIZE_WINDOW "_GNUSTEP_WM_MINIATURIZE_WINDOW"
31 #define GNUSTEP_WM_ATTR_NAME "_GNUSTEP_WM_ATTR"
33 #define GNUSTEP_TITLEBAR_STATE "_GNUSTEP_TITLEBAR_STATE"
40 #ifndef _DEFINED_GNUSTEP_WINDOW_INFO
41 #define _DEFINED_GNUSTEP_WINDOW_INFO
43 * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
44 * NSDesktopWindowLevel intended to be the level at which things
45 * on the desktop sit ... so you should be able
46 * to put a desktop background just below it.
48 * Applications are actually permitted to use any value in the
49 * range INT_MIN+1 to INT_MAX
52 WMDesktopWindowLevel
= -1000, /* GNUstep addition */
53 WMNormalWindowLevel
= 0,
54 WMFloatingWindowLevel
= 3,
55 WMSubmenuWindowLevel
= 3,
56 WMTornOffMenuWindowLevel
= 3,
57 WMMainMenuWindowLevel
= 20,
58 WMDockWindowLevel
= 21, /* Deprecated - use NSStatusWindowLevel */
59 WMStatusWindowLevel
= 21,
60 WMModalPanelWindowLevel
= 100,
61 WMPopUpMenuWindowLevel
= 101,
62 WMScreenSaverWindowLevel
= 1000
66 /* window attributes */
68 WMBorderlessWindowMask
= 0,
69 WMTitledWindowMask
= 1,
70 WMClosableWindowMask
= 2,
71 WMMiniaturizableWindowMask
= 4,
72 WMResizableWindowMask
= 8,
73 WMIconWindowMask
= 64,
74 WMMiniWindowMask
= 128
78 /* window manager -> appkit notifications */
79 #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"
87 Pixmap miniaturize_pixmap
; /* pixmap for miniaturize button */
88 Pixmap close_pixmap
; /* pixmap for close button */
89 Pixmap miniaturize_mask
; /* miniaturize pixmap mask */
90 Pixmap close_mask
; /* close pixmap mask */
92 } GNUstepWMAttributes
;
94 #define GSWindowStyleAttr (1<<0)
95 #define GSWindowLevelAttr (1<<1)
96 #define GSMiniaturizePixmapAttr (1<<3)
97 #define GSClosePixmapAttr (1<<4)
98 #define GSMiniaturizeMaskAttr (1<<5)
99 #define GSCloseMaskAttr (1<<6)
100 #define GSExtraFlagsAttr (1<<7)
103 #define GSDocumentEditedFlag (1<<0)
105 #define GSNoApplicationIconFlag (1<<5)
108 #define WMFHideOtherApplications 10
109 #define WMFHideApplication 12