diff options
author | okan <okan> | 2019-03-07 14:28:17 +0000 |
---|---|---|
committer | okan <okan> | 2019-03-07 14:28:17 +0000 |
commit | 7c45b87622c069a176359df3c632086540a7fe3f (patch) | |
tree | 9b515d87072ce60074e2ab985383acc3f8f28fae /kbfunc.c | |
parent | 01be5b4e4a04e5f454d0e685c71c8023c7c0b731 (diff) | |
download | cwm-7c45b87622c069a176359df3c632086540a7fe3f.tar.gz cwm-7c45b87622c069a176359df3c632086540a7fe3f.tar.xz cwm-7c45b87622c069a176359df3c632086540a7fe3f.zip |
Teach client_current() to use a screen to find the current client instead of
iterating over all (fallback if no screen provided for now). Initially convert trivial uses of client_current().
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c index 5f6d54e..03a5d79 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -470,7 +470,7 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs) if (cargs->xev == CWM_XEV_BTN) mflags |= CWM_MENU_LIST; - old_cc = client_current(); + old_cc = client_current(sc); TAILQ_INIT(&menuq); TAILQ_FOREACH(cc, &sc->clientq, entry) { |