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