summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2014-09-27 19:04:32 +0000
committerokan <okan>2014-09-27 19:04:32 +0000
commitc700f7e19a1af8f488da3657c8c25d1eb8accd0a (patch)
tree74c10c8ca27413c9328e37a85e114383b1200f80 /xutil.c
parent2540b3f4fe34c6bc6ed0593e9c6d713d84b2c301 (diff)
parente9dbd150eaf14d230e7aa6191e5762b69e6b1241 (diff)
downloadcwm-c700f7e19a1af8f488da3657c8c25d1eb8accd0a.tar.gz
cwm-c700f7e19a1af8f488da3657c8c25d1eb8accd0a.tar.xz
cwm-c700f7e19a1af8f488da3657c8c25d1eb8accd0a.zip
cvsimport
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 7765413..460f902 100644
--- a/xutil.c
+++ b/xutil.c
@@ -274,10 +274,12 @@ xu_ewmh_net_virtual_roots(struct screen_ctx *sc)
 }
 
 void
-xu_ewmh_net_current_desktop(struct screen_ctx *sc, long idx)
+xu_ewmh_net_current_desktop(struct screen_ctx *sc)
 {
+	long	 num = sc->group_active->num;
+
 	XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_CURRENT_DESKTOP],
-	    XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&idx, 1);
+	    XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&num, 1);
 }
 
 void