mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
add helper function client_show to bring together like actions for unhide/raise
This commit is contained in:
5
kbfunc.c
5
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);
|
||||
|
Reference in New Issue
Block a user