Fix "smart" placement bug when there are shaded windows in other workspaces
[wmaker-crm.git] / src / GNUstep.h
blobbe74915961ef490c430e8b99bf0260255df5685c
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,
20 * USA.
24 #ifndef WMGNUSTEP_H_
25 #define WMGNUSTEP_H_
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"
35 enum {
36 WMTitleBarKey = 0,
37 WMTitleBarNormal = 1,
38 WMTitleBarMain = 2
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
52 enum {
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 */
68 enum {
69 WMBorderlessWindowMask = 0,
70 WMTitledWindowMask = 1,
71 WMClosableWindowMask = 2,
72 WMMiniaturizableWindowMask = 4,
73 WMResizableWindowMask = 8,
74 WMIconWindowMask = 64,
75 WMMiniWindowMask = 128
77 #endif
79 /* window manager -> appkit notifications */
80 #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"
83 typedef struct {
84 CARD32 flags;
85 CARD32 window_style;
86 CARD32 window_level;
87 CARD32 reserved;
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 */
92 CARD32 extra_flags;
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)
103 /* extra flags */
104 #define GSDocumentEditedFlag (1<<0)
106 #define GSNoApplicationIconFlag (1<<5)
109 #define WMFHideOtherApplications 10
110 #define WMFHideApplication 12
112 #endif