about summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2013-01-01 14:50:01 +0000
committerokan <okan>2013-01-01 14:50:01 +0000
commitafb36484404f5664f1f4533cfa97989f0af3b04c (patch)
tree97f5e81c56b5c0d77189dbfa54624fcafb34b49f /group.c
parentccbb1f1529e539dce9b4520349407b146cd07edd (diff)
downloadcwm-afb36484404f5664f1f4533cfa97989f0af3b04c.tar.gz
cwm-afb36484404f5664f1f4533cfa97989f0af3b04c.tar.xz
cwm-afb36484404f5664f1f4533cfa97989f0af3b04c.zip
after we toggle a group hidden, it makes no sense to set it as active
(in sticky or non-stick mode), regardless of existing clients assigned
to that group; oga marked this bit XXX in -r1.34 for it didn't seem make
sense then either.

pulled from a diff from from Alexander Polakov.
Diffstat (limited to 'group.c')
-rw-r--r--group.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/group.c b/group.c
index de3f6b9..d226578 100644
--- a/group.c
+++ b/group.c
@@ -269,12 +269,8 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
 
 	if (gc->hidden)
 		group_show(sc, gc);
-	else {
+	else
 		group_hide(sc, gc);
-		/* XXX wtf? */
-		if (TAILQ_EMPTY(&gc->clients))
-			group_setactive(sc, idx);
-	}
 }
 
 void