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

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