diff options
author | okan | 2019-03-07 14:28:17 +0000 |
---|---|---|
committer | okan | 2019-03-07 14:28:17 +0000 |
commit | 74a07e98a76678714e28c1085f0068d7abe7b9db (patch) | |
tree | b26c527b3826c0c4bfe7ccd682135b2b6a578c1d /kbfunc.c | |
parent | d68bdd9253084b00edebefeae250d710c235b9dc (diff) | |
download | cwm-74a07e98a76678714e28c1085f0068d7abe7b9db.tar.gz |
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 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.164 2019/03/07 12:54:21 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.165 2019/03/07 14:28:17 okan Exp $ */ #include <sys/types.h> @@ -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) { |