diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-05-19 12:49:38 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-05-19 12:49:38 +0000 |
commit | f747456505e162101dbf90125f6230e60612225c (patch) | |
tree | e52b91cbeed53ad4cc7f3521c3ca0edddc4a87af /app/cwm/group.c | |
parent | 063262a67dd636588bb506c5fd276da077e14f5e (diff) |
In movetogroup, check the window's current group and skip client_hide()
if it's the same as the active group. Was in my original movetogroup diff,
but it got simplified a little too far. ok oga@
Diffstat (limited to 'app/cwm/group.c')
-rw-r--r-- | app/cwm/group.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index 5f0b416fb..528220005 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.29 2009/05/18 00:23:35 okan Exp $ + * $Id: group.c,v 1.30 2009/05/19 12:49:37 sthen Exp $ */ #include "headers.h" @@ -152,7 +152,8 @@ group_movetogroup(struct client_ctx *cc, int idx) if (idx < 0 || idx >= CALMWM_NGROUPS) err(1, "group_movetogroup: index out of range (%d)", idx); - client_hide(cc); + if(Group_active != &Groups[idx]) + client_hide(cc); group_add(&Groups[idx], cc); } |