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"
51 /* window stacking level */
53 WMNormalWindowLevel
= 0,
54 WMFloatingWindowLevel
= 3,
55 WMDockWindowLevel
= 5,
56 WMSubmenuWindowLevel
= 10,
57 WMMainMenuWindowLevel
= 20
60 /* window attributes */
62 WMBorderlessWindowMask
= 0,
63 WMTitledWindowMask
= 1,
64 WMClosableWindowMask
= 2,
65 WMMiniaturizableWindowMask
= 4,
66 WMResizableWindowMask
= 8
68 #endif /* _WINGS_H_ */
70 /* window manager -> appkit notifications */
71 #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"
79 Pixmap miniaturize_pixmap
; /* pixmap for miniaturize button */
80 Pixmap close_pixmap
; /* pixmap for close button */
81 Pixmap miniaturize_mask
; /* miniaturize pixmap mask */
82 Pixmap close_mask
; /* close pixmap mask */
84 } GNUstepWMAttributes
;
86 #define GSWindowStyleAttr (1<<0)
87 #define GSWindowLevelAttr (1<<1)
88 #define GSMiniaturizePixmapAttr (1<<3)
89 #define GSClosePixmapAttr (1<<4)
90 #define GSMiniaturizeMaskAttr (1<<5)
91 #define GSCloseMaskAttr (1<<6)
92 #define GSExtraFlagsAttr (1<<7)
95 #define GSDocumentEditedFlag (1<<0)
96 #define GSWindowWillResizeNotificationsFlag (1<<1)
97 #define GSWindowWillMoveNotificationsFlag (1<<2)
99 #define GSNoApplicationIconFlag (1<<5)
102 #define WMFHideOtherApplications 10
103 #define WMFHideApplication 12