diff options
author | okan <okan> | 2013-01-01 14:19:56 +0000 |
---|---|---|
committer | okan <okan> | 2013-01-01 14:19:56 +0000 |
commit | 0957fbbee2426faa00ca759ad772e650f87c745c (patch) | |
tree | 6de7d196d948a6cb1746635f1411c789a63c22c9 /xutil.c | |
parent | dc1e3a88438dc732349154bca610dbe813d2fc04 (diff) | |
download | cwm-0957fbbee2426faa00ca759ad772e650f87c745c.tar.gz cwm-0957fbbee2426faa00ca759ad772e650f87c745c.tar.xz cwm-0957fbbee2426faa00ca759ad772e650f87c745c.zip |
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.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |