diff options
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xutil.c b/xutil.c index a663150..8a22e21 100644 --- a/xutil.c +++ b/xutil.c @@ -218,15 +218,14 @@ xu_getstate(Window win, int *state) } void -xu_setstate(struct client_ctx *cc, int state) +xu_setstate(Window win, int state) { long dat[2]; dat[0] = state; dat[1] = None; - cc->state = state; - XChangeProperty(X_Dpy, cc->win, + XChangeProperty(X_Dpy, win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 32, PropModeReplace, (unsigned char *)dat, 2); } |