diff options
author | okan <okan> | 2011-12-29 20:48:38 +0000 |
---|---|---|
committer | okan <okan> | 2011-12-29 20:48:38 +0000 |
commit | 1603d185607bd4c0764def459c8599ce3d0e3d25 (patch) | |
tree | 39f5434fc3f376e5ba54c6cc9e5fa2bd233736bb | |
parent | 96ebac8b0486133b65d92d844804c81a6855d54f (diff) | |
parent | fd9b83a232ecfbd1bcd5c5e80117931019964db4 (diff) | |
download | cwm-1603d185607bd4c0764def459c8599ce3d0e3d25.tar.gz cwm-1603d185607bd4c0764def459c8599ce3d0e3d25.tar.xz cwm-1603d185607bd4c0764def459c8599ce3d0e3d25.zip |
cvsimport
-rw-r--r-- | group.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/group.c b/group.c index 24933d9..68068b1 100644 --- a/group.c +++ b/group.c @@ -222,11 +222,13 @@ group_movetogroup(struct client_ctx *cc, int idx) err(1, "group_movetogroup: index out of range (%d)", idx); gc = &sc->groups[idx]; + if (cc->group == gc) + return; if (gc->hidden) { client_hide(cc); gc->nhidden++; } - group_add(&sc->groups[idx], cc); + group_add(gc, cc); } /* |