about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2012-07-08 02:50:41 +0000
committerokan <okan>2012-07-08 02:50:41 +0000
commit6faef40c55bdf81ed638085f224cda8b9001fb85 (patch)
treead8dd58c35b950ef81df5600c83165ab15db47ec /xutil.c
parentc8a17ef5364a1ed43e709da40f1f4715e2852e3c (diff)
downloadcwm-6faef40c55bdf81ed638085f224cda8b9001fb85.tar.gz
cwm-6faef40c55bdf81ed638085f224cda8b9001fb85.tar.xz
cwm-6faef40c55bdf81ed638085f224cda8b9001fb85.zip
fix atom for retrieving WM_STATE between re-exec's.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xutil.c b/xutil.c
index 7f0c4c4..2a7d089 100644
--- a/xutil.c
+++ b/xutil.c
@@ -207,7 +207,7 @@ xu_getstate(struct client_ctx *cc, int *state)
 {
 	long	*p = NULL;
 
-	if (xu_getprop(cc->win, cwmh[WM_STATE].atom, WM_STATE, 2L,
+	if (xu_getprop(cc->win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 2L,
 	    (u_char **)&p) <= 0)
 		return (-1);