summaryrefslogtreecommitdiff
path: root/app/cwm/xutil.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-01-01 14:19:57 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-01-01 14:19:57 +0000
commitc7c9d155d2e024803cbad71069d1aa57c6208720 (patch)
tree1df3aa23d7faa6d6f027571b126171487193a79b /app/cwm/xutil.c
parente2f9e2f8c07631965fee178a3f822045b29f5ebb (diff)
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 'app/cwm/xutil.c')
-rw-r--r--app/cwm/xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c
index cdb7321f5..954b397d0 100644
--- a/app/cwm/xutil.c
+++ b/app/cwm/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.51 2012/12/17 18:34:06 okan Exp $
+ * $OpenBSD: xutil.c,v 1.52 2013/01/01 14:19:56 okan Exp $
*/
#include <sys/param.h>
@@ -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);