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.
This commit is contained in:
okan 2017-02-10 15:00:54 +00:00
parent 172da14d77
commit 8d9d84d859

View File

@ -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);
}