]> git.decadent.org.uk Git - ion3.git/blob - ioncore/mwmhints.h
Imported Upstream version 20090110
[ion3.git] / ioncore / mwmhints.h
1 /*
2  * ion/ioncore/mwmhints.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_MWMHINTS_H
10 #define ION_IONCORE_MWMHINTS_H
11
12 #include <X11/Xmd.h>
13
14 #include "common.h"
15
16
17 #define MWM_HINTS_FUNCTIONS     0x0001
18 #define MWM_HINTS_DECORATIONS   0x0002
19 #define MWM_HINTS_IONCORE_INPUTMODE_MODE    0x0004
20 #define MWM_HINTS_IONCORE_INPUTMODE_STATUS  0x0008
21
22 #define MWM_FUNC_ALL            0x0001
23 #define MWM_FUNC_RESIZE         0x0002
24 #define MWM_FUNC_MOVE           0x0004
25 #define MWM_FUNC_ICONIFY        0x0008
26 #define MWM_FUNC_MAXIMIZE       0x0010
27 #define MWM_FUNC_CLOSE          0x0020
28
29 #define MWM_DECOR_ALL           0x0001
30 #define MWM_DECOR_BORDER        0x0002
31 #define MWM_DECOR_HANDLE        0x0004
32 #define MWM_DECOR_TITLE         0x0008
33 #define MWM_DECOR_MENU          0x0010
34 #define MWM_DECOR_ICONIFY       0x0020
35 #define MWM_DECOR_MAXIMIZE      0x0040
36
37 #define MWM_IONCORE_INPUTMODE_MODELESS 0
38 #define MWM_IONCORE_INPUTMODE_PRIMARY_APPLICATION_MODAL 1
39 #define MWM_IONCORE_INPUTMODE_SYSTEM_MODAL 2
40 #define MWM_IONCORE_INPUTMODE_FULL_APPLICATION_MODAL 3
41
42 INTRSTRUCT(WMwmHints);
43     
44 DECLSTRUCT(WMwmHints){
45     CARD32 flags;
46     CARD32 functions;
47     CARD32 decorations;
48     INT32 inputmode;
49     CARD32 status;
50 };
51
52 #define MWM_DECOR_NDX 3
53 #define MWM_N_HINTS 5
54
55
56 extern WMwmHints *xwindow_get_mwmhints(Window win);
57 extern void xwindow_check_mwmhints_nodecor(Window win, bool *nodecor);
58
59
60 #endif /* ION_IONCORE_MWMHINTS_H */