From 5ddaed415c895e56e7c1e6e7b881df8d3c4214bd Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 29 Dec 2017 12:54:54 +0000 Subject: add helper function client_show to bring together like actions for unhide/raise --- client.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client.c') diff --git a/client.c b/client.c index 5ce61e4..3a1ce01 100644 --- a/client.c +++ b/client.c @@ -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) { -- cgit 1.4.1