summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2017-02-10 15:00:54 +0000
committerokan <okan>2017-02-10 15:00:54 +0000
commit8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596 (patch)
tree55dc76f97d1e81b1635bb22a1e2e2a17c1f2ca78
parent172da14d77718199a262fe0ae593d6a5862714da (diff)
downloadcwm-8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596.tar.gz
cwm-8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596.tar.xz
cwm-8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596.zip
Fix group hidden state when a client wants to be on all desktops on start;
reported by Vadim Vygonets with diff, but another approach was taken.
-rw-r--r--group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/group.c b/group.c
index a26c53d..2152ee0 100644
--- a/group.c
+++ b/group.c
@@ -164,7 +164,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
 
 	if (cc->gc == gc)
 		return;
-	if (group_holds_only_hidden(gc))
+	if (gc->num != 0 && group_holds_only_hidden(gc))
 		client_hide(cc);
 	group_assign(gc, cc);
 }