2 * ion/ioncore/mwmhints.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
15 WMwmHints *xwindow_get_mwmhints(Window win)
17 WMwmHints *hints=NULL;
20 n=xwindow_get_property(win, ioncore_g.atom_mwm_hints,
21 ioncore_g.atom_mwm_hints,
22 MWM_N_HINTS, FALSE, (uchar**)&hints);
24 if(n<MWM_N_HINTS && hints!=NULL){
33 void xwindow_check_mwmhints_nodecor(Window win, bool *nodecor)
40 n=xwindow_get_property(win, ioncore_g.atom_mwm_hints,
41 ioncore_g.atom_mwm_hints,
42 MWM_N_HINTS, FALSE, (uchar**)&hints);
47 if(hints->flags&MWM_HINTS_DECORATIONS &&
48 (hints->decorations&MWM_DECOR_ALL)==0){
51 if(hints->decorations&MWM_DECOR_BORDER ||
52 hints->decorations&MWM_DECOR_TITLE)