summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan <okan>2017-12-29 12:54:54 +0000
committerokan <okan>2017-12-29 12:54:54 +0000
commit5ddaed415c895e56e7c1e6e7b881df8d3c4214bd (patch)
treed401df5768af9f7fc318281aa59561a530e97f98 /kbfunc.c
parent156681f0a5af18704faab52929badc671390ec61 (diff)
downloadcwm-5ddaed415c895e56e7c1e6e7b881df8d3c4214bd.tar.gz
cwm-5ddaed415c895e56e7c1e6e7b881df8d3c4214bd.tar.xz
cwm-5ddaed415c895e56e7c1e6e7b881df8d3c4214bd.zip
add helper function client_show to bring together like actions for unhide/raise
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 60e4b41..a662d02 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -471,10 +471,7 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs)
 	if ((mi = menu_filter(sc, &menuq, "window", NULL, mflags,
 	    search_match_client, search_print_client)) != NULL) {
 		cc = (struct client_ctx *)mi->ctx;
-		if (cc->flags & CLIENT_HIDDEN)
-			client_unhide(cc);
-		else
-			client_raise(cc);
+		client_show(cc);
 		if (old_cc)
 			client_ptrsave(old_cc);
 		client_ptrwarp(cc);