mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
No need to lookup current client early; move to right before it is
needed.
This commit is contained in:
parent
3b9b98c024
commit
207b71ef1c
4
kbfunc.c
4
kbfunc.c
@ -515,8 +515,6 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs)
|
||||
if (cargs->xev == CWM_XEV_BTN)
|
||||
mflags |= CWM_MENU_LIST;
|
||||
|
||||
old_cc = client_current(sc);
|
||||
|
||||
TAILQ_INIT(&menuq);
|
||||
TAILQ_FOREACH(cc, &sc->clientq, entry) {
|
||||
if (!all) {
|
||||
@ -530,7 +528,7 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs)
|
||||
search_match_client, search_print_client)) != NULL) {
|
||||
cc = (struct client_ctx *)mi->ctx;
|
||||
client_show(cc);
|
||||
if (old_cc)
|
||||
if ((old_cc = client_current(sc)) != NULL)
|
||||
client_ptr_save(old_cc);
|
||||
client_ptr_warp(cc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user