summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2013-04-14 16:13:17 +0000
committerokan <okan>2013-04-14 16:13:17 +0000
commit16ed8bf8e4f561049b732b326f3d0ee475fe13f6 (patch)
tree69faebffc8e2511edbf4bdca1d32e2a78eeb1e9e /client.c
parentf3dfc4968cee2080cfa4a4f24f0977b962aa367d (diff)
downloadcwm-16ed8bf8e4f561049b732b326f3d0ee475fe13f6.tar.gz
cwm-16ed8bf8e4f561049b732b326f3d0ee475fe13f6.tar.xz
cwm-16ed8bf8e4f561049b732b326f3d0ee475fe13f6.zip
only a window is required to set WM_STATE. also un-confuse xu_ptr_getpos
by using 'win' instead of 'rootwin' so as not to imply only the root
window is queried, rather any window.
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 495625f..932b4bc 100644
--- a/client.c
+++ b/client.c
@@ -111,7 +111,7 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
 	}
 	client_draw_border(cc);
 
-	if (xu_getstate(cc, &state) < 0)
+	if (xu_getstate(cc->win, &state) < 0)
 		state = NormalState;
 
 	XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask |