summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2013-01-01 14:19:56 +0000
committerokan <okan>2013-01-01 14:19:56 +0000
commit0957fbbee2426faa00ca759ad772e650f87c745c (patch)
tree6de7d196d948a6cb1746635f1411c789a63c22c9 /client.c
parentdc1e3a88438dc732349154bca610dbe813d2fc04 (diff)
downloadcwm-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 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 2bdfe28..3a20e00 100644
--- a/client.c
+++ b/client.c
@@ -876,7 +876,7 @@ client_transient(struct client_ctx *cc)
 
 	if (XGetTransientForHint(X_Dpy, cc->win, &trans)) {
 		if ((tc = client_find(trans)) && tc->group) {
-			group_movetogroup(cc, tc->group->shortcut - 1);
+			group_movetogroup(cc, tc->group->shortcut);
 			if (tc->flags & CLIENT_IGNORE)
 				cc->flags |= CLIENT_IGNORE;
 		}