about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2014-02-08 02:49:30 +0000
committerokan <okan>2014-02-08 02:49:30 +0000
commit8ddc90665e293efeb810ce73b871ee6e4f6ce68a (patch)
treef9420dc05d83dbd934bbb425161603bb0c4b4bb8 /xutil.c
parent8653141b4b5d76bd7238003cf43034681c7724a4 (diff)
parent6798e3dde302febeef3aa641eadea55d394461ff (diff)
downloadcwm-8ddc90665e293efeb810ce73b871ee6e4f6ce68a.tar.gz
cwm-8ddc90665e293efeb810ce73b871ee6e4f6ce68a.tar.xz
cwm-8ddc90665e293efeb810ce73b871ee6e4f6ce68a.zip
cvsimport
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xutil.c b/xutil.c
index 1884d5f..58ee304 100644
--- a/xutil.c
+++ b/xutil.c
@@ -291,11 +291,7 @@ xu_ewmh_net_desktop_names(struct screen_ctx *sc, char *data, int n)
 void
 xu_ewmh_net_wm_desktop(struct client_ctx *cc)
 {
-	struct group_ctx	*gc = cc->group;
-	long			 no = 0xffffffff;
-
-	if (gc)
-		no = gc->shortcut;
+	int	 no = cc->group->shortcut;
 
 	XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP],
 	    XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1);