Selectively hide and show clients based on state; merge client_unhide() and

client_show().
This commit is contained in:
okan
2019-02-28 13:11:53 +00:00
parent cd4be1c17a
commit 8cd6d1154c
3 changed files with 9 additions and 17 deletions

View File

@ -67,7 +67,8 @@ group_hide(struct group_ctx *gc)
screen_updatestackingorder(gc->sc);
TAILQ_FOREACH(cc, &gc->clientq, group_entry) {
if (!(cc->flags & CLIENT_STICKY))
if (!(cc->flags & CLIENT_STICKY) &&
!(cc->flags & CLIENT_HIDDEN))
client_hide(cc);
}
}
@ -78,8 +79,9 @@ group_show(struct group_ctx *gc)
struct client_ctx *cc;
TAILQ_FOREACH(cc, &gc->clientq, group_entry) {
if (!(cc->flags & CLIENT_STICKY))
client_unhide(cc);
if (!(cc->flags & CLIENT_STICKY) &&
(cc->flags & CLIENT_HIDDEN))
client_show(cc);
}
group_restack(gc);