From 0957fbbee2426faa00ca759ad772e650f87c745c Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 1 Jan 2013 14:19:56 +0000 Subject: make num of groups no longer off-by-one; from Alexander Polakov note that a re-exec of cwm will not rewrite the group number atom of *existing* clients, so they will remain off-by-one until each client has its atom updated, or of course a restart of X. --- xutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index b910906..32a9974 100644 --- a/xutil.c +++ b/xutil.c @@ -411,7 +411,7 @@ xu_ewmh_net_wm_desktop(struct client_ctx *cc) long no = 0xffffffff; if (gc) - no = gc->shortcut - 1; + no = gc->shortcut; XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP].atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1); -- cgit 1.4.1