aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2013-01-01 14:19:56 +0000
committerokan2013-01-01 14:19:56 +0000
commit04e1c4d4ec08c96fbc13dfb72f061b1845f9b785 (patch)
treed384c0e3da111c126fad8976256719605a2946aa /client.c
parentc5eb66fdce461930b3b780e5f09b0f3771474825 (diff)
downloadcwm-04e1c4d4ec08c96fbc13dfb72f061b1845f9b785.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 1dd246d..3e52b5c 100644
--- a/client.c
+++ b/client.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: client.c,v 1.107 2012/12/17 18:35:26 okan Exp $
+ * $OpenBSD: client.c,v 1.108 2013/01/01 14:19:56 okan Exp $
*/
#include <sys/param.h>
@@ -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;
}