1 /* GNUstep.h-- stuff for compatibility with GNUstep applications
3 * Window Maker window manager
5 * Copyright (c) 1997, 1998 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
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
28 * Kluge for when proplist.h is included too. proplist.h #defines BOOL
29 * and Xmd.h (which is indirectly included from Xproto.h) typedefs BOOL.
30 * The worst is that the BOOL from Xmd.h is a 8bit type, while BOOL from
31 * proplist.h is int...
34 #define WINGS_BOOL_FLAG
38 #include <X11/Xproto.h>
40 #ifdef WINGS_BOOL_FLAG
42 #undef WINGS_BOOL_FLAG
45 #define GNUSTEP_WM_MINIATURIZE_WINDOW "_GNUSTEP_WM_MINIATURIZE_WINDOW"
47 #define GNUSTEP_WM_ATTR_NAME "_GNUSTEP_WM_ATTR"
49 #define GNUSTEP_TITLEBAR_STATE "_GNUSTEP_TITLEBAR_STATE"
57 /* window stacking level */
59 WMNormalWindowLevel
= 0,
60 WMFloatingWindowLevel
= 3,
61 WMDockWindowLevel
= 5,
62 WMSubmenuWindowLevel
= 10,
63 WMMainMenuWindowLevel
= 20
66 /* window attributes */
68 WMBorderlessWindowMask
= 0,
69 WMTitledWindowMask
= 1,
70 WMClosableWindowMask
= 2,
71 WMMiniaturizableWindowMask
= 4,
72 WMResizableWindowMask
= 8,
73 WMIconWindowMask
= 64,
74 WMMiniWindowMask
= 128
76 #endif /* _WINGS_H_ */
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