diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2013-12-30 02:20:53 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2013-12-30 02:20:53 +0100 |
commit | 5553ea232b276ac454c048f3f9d9548536a69f05 (patch) | |
tree | 99d501f30f047955ac32b085f0fe1070b4b0b191 /xutil.c | |
parent | b387351df1593020665df5e5ee5d86d16ad8b7d6 (diff) | |
download | cwm-cn-noraise.tar.gz cwm-cn-noraise.tar.xz cwm-cn-noraise.zip |
don't raise windows with the CWM_NORAISE property set cn-noraise
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xutil.c b/xutil.c index bc37558..d3253ad 100644 --- a/xutil.c +++ b/xutil.c @@ -414,6 +414,21 @@ xu_ewmh_set_net_wm_state(struct client_ctx *cc) free(atoms); } +int +xu_cwm_allow_raise(struct client_ctx *cc) +{ + long noraise = 0; + long *noraisep; + + if (xu_getprop(cc->win, cwmh[CWM_NORAISE], + XA_CARDINAL, 1, (unsigned char **)&noraisep) > 0) { + noraise = *noraisep; + XFree(noraisep); + } + + return noraise == 0; +} + void xu_xorcolor(XftColor a, XftColor b, XftColor *r) { |