Add comments to fork() logic for readibility
[notion/jeffpc.git] / ioncore / mwmhints.h
blob213277a1263271018047050c8f678ab8ca371dbf
1 /*
2 * ion/ioncore/mwmhints.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_MWMHINTS_H
10 #define ION_IONCORE_MWMHINTS_H
12 #include <X11/Xmd.h>
14 #include "common.h"
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
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
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
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
42 INTRSTRUCT(WMwmHints);
44 DECLSTRUCT(WMwmHints){
45 CARD32 flags;
46 CARD32 functions;
47 CARD32 decorations;
48 INT32 inputmode;
49 CARD32 status;
52 #define MWM_DECOR_NDX 3
53 #define MWM_N_HINTS 5
56 extern WMwmHints *xwindow_get_mwmhints(Window win);
57 extern void xwindow_check_mwmhints_nodecor(Window win, bool *nodecor);
60 #endif /* ION_IONCORE_MWMHINTS_H */