about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2013-04-17 13:52:20 +0000
committerokan <okan>2013-04-17 13:52:20 +0000
commit302690624e29eddb506e4a377b59eac029128f3f (patch)
tree59804d704a190ab7f347ff8112dddb25e09f0dfd /xutil.c
parent1dbcc394aed6f7e4161ab065516128fa94bd0149 (diff)
downloadcwm-302690624e29eddb506e4a377b59eac029128f3f.tar.gz
cwm-302690624e29eddb506e4a377b59eac029128f3f.tar.xz
cwm-302690624e29eddb506e4a377b59eac029128f3f.zip
slightly rework WM_STATE set/get to make it less ambigious; will be more clear
on what needs to change to make it right in the end.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c5
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);
 }