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
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27 #include <X11/Xproto.h>
30 #define GNUSTEP_WM_MINIATURIZE_WINDOW "_GNUSTEP_WM_MINIATURIZE_WINDOW"
32 #define GNUSTEP_WM_ATTR_NAME "_GNUSTEP_WM_ATTR"
34 #define GNUSTEP_TITLEBAR_STATE "_GNUSTEP_TITLEBAR_STATE"
41 #ifndef _DEFINED_GNUSTEP_WINDOW_INFO
42 #define _DEFINED_GNUSTEP_WINDOW_INFO
44 * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
45 * NSDesktopWindowLevel intended to be the level at which things
46 * on the desktop sit ... so you should be able
47 * to put a desktop background just below it.
49 * Applications are actually permitted to use any value in the
50 * range INT_MIN+1 to INT_MAX
53 WMDesktopWindowLevel
= -1000, /* GNUstep addition */
54 WMNormalWindowLevel
= 0,
55 WMFloatingWindowLevel
= 3,
56 WMSubmenuWindowLevel
= 3,
57 WMTornOffMenuWindowLevel
= 3,
58 WMMainMenuWindowLevel
= 20,
59 WMDockWindowLevel
= 21, /* Deprecated - use NSStatusWindowLevel */
60 WMStatusWindowLevel
= 21,
61 WMModalPanelWindowLevel
= 100,
62 WMPopUpMenuWindowLevel
= 101,
63 WMScreenSaverWindowLevel
= 1000
67 /* window attributes */
69 WMBorderlessWindowMask
= 0,
70 WMTitledWindowMask
= 1,
71 WMClosableWindowMask
= 2,
72 WMMiniaturizableWindowMask
= 4,
73 WMResizableWindowMask
= 8,
74 WMIconWindowMask
= 64,
75 WMMiniWindowMask
= 128
79 /* window manager -> appkit notifications */
80 #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"
88 Pixmap miniaturize_pixmap
; /* pixmap for miniaturize button */
89 Pixmap close_pixmap
; /* pixmap for close button */
90 Pixmap miniaturize_mask
; /* miniaturize pixmap mask */
91 Pixmap close_mask
; /* close pixmap mask */
93 } GNUstepWMAttributes
;
95 #define GSWindowStyleAttr (1<<0)
96 #define GSWindowLevelAttr (1<<1)
97 #define GSMiniaturizePixmapAttr (1<<3)
98 #define GSClosePixmapAttr (1<<4)
99 #define GSMiniaturizeMaskAttr (1<<5)
100 #define GSCloseMaskAttr (1<<6)
101 #define GSExtraFlagsAttr (1<<7)
104 #define GSDocumentEditedFlag (1<<0)
106 #define GSNoApplicationIconFlag (1<<5)
109 #define WMFHideOtherApplications 10
110 #define WMFHideApplication 12