add helper function client_show to bring together like actions for unhide/raise

This commit is contained in:
okan
2017-12-29 12:54:54 +00:00
parent 156681f0a5
commit 5ddaed415c
4 changed files with 12 additions and 8 deletions

View File

@@ -531,6 +531,15 @@ client_hide(struct client_ctx *cc)
client_set_wm_state(cc, IconicState);
}
void
client_show(struct client_ctx *cc)
{
if (cc->flags & CLIENT_HIDDEN)
client_unhide(cc);
else
client_raise(cc);
}
void
client_unhide(struct client_ctx *cc)
{