2 * ion/ioncore/mwmhints.c
4 * Copyright (c) Tuomo Valkonen 1999-2006.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
18 WMwmHints *xwindow_get_mwmhints(Window win)
20 WMwmHints *hints=NULL;
23 n=xwindow_get_property(win, ioncore_g.atom_mwm_hints,
24 ioncore_g.atom_mwm_hints,
25 MWM_N_HINTS, FALSE, (uchar**)&hints);
27 if(n<MWM_N_HINTS && hints!=NULL){
36 void xwindow_check_mwmhints_nodecor(Window win, bool *nodecor)
43 n=xwindow_get_property(win, ioncore_g.atom_mwm_hints,
44 ioncore_g.atom_mwm_hints,
45 MWM_N_HINTS, FALSE, (uchar**)&hints);
50 if(hints->flags&MWM_HINTS_DECORATIONS &&
51 (hints->decorations&MWM_DECOR_ALL)==0){
54 if(hints->decorations&MWM_DECOR_BORDER ||
55 hints->decorations&MWM_DECOR_TITLE)