diff options
author | okan <okan> | 2013-12-11 14:16:09 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-11 14:16:09 +0000 |
commit | 0d9b1becff4661134895780e4d610521582dc288 (patch) | |
tree | be7156caf0e443b3a310ec9cac6481d0302e6ff9 /xutil.c | |
parent | 23a1abdd8ac7025ff55e287bd4437594618781d2 (diff) | |
download | cwm-0d9b1becff4661134895780e4d610521582dc288.tar.gz cwm-0d9b1becff4661134895780e4d610521582dc288.tar.xz cwm-0d9b1becff4661134895780e4d610521582dc288.zip |
Remove extra work and simplify client state handling.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/xutil.c b/xutil.c index 73dfac0..3435274 100644 --- a/xutil.c +++ b/xutil.c @@ -157,33 +157,6 @@ xu_getstrprop(Window win, Atom atm, char **text) { return (nitems); } -int -xu_get_wm_state(Window win, int *state) -{ - long *p = NULL; - - if (xu_getprop(win, cwmh[WM_STATE], cwmh[WM_STATE], 2L, - (unsigned char **)&p) <= 0) - return (-1); - - *state = (int)*p; - XFree((char *)p); - - return (0); -} - -void -xu_set_wm_state(Window win, int state) -{ - long dat[2]; - - dat[0] = state; - dat[1] = None; - - XChangeProperty(X_Dpy, win, cwmh[WM_STATE], cwmh[WM_STATE], 32, - PropModeReplace, (unsigned char *)dat, 2); -} - /* Root Window Properties */ void xu_ewmh_net_supported(struct screen_ctx *sc) |