aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2013-01-01 14:50:01 +0000
committerokan2013-01-01 14:50:01 +0000
commiteb90f692d0c3e8b8acbb22778e78954d39f6a687 (patch)
tree3c00efdb95758124a0b1d4dddfcf9fe493279a61 /group.c
parenta88aece6c9eb27d662c215bf583b7941558d0853 (diff)
downloadcwm-eb90f692d0c3e8b8acbb22778e78954d39f6a687.tar.gz
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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/group.c b/group.c
index 99d6722..8df50a0 100644
--- a/group.c
+++ b/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.
*
- * $OpenBSD: group.c,v 1.67 2013/01/01 14:19:56 okan Exp $
+ * $OpenBSD: group.c,v 1.68 2013/01/01 14:50:01 okan Exp $
*/
#include <sys/param.h>
@@ -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