From 1f244fe29c7234b05614f4040208f60052a8d377 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Jul 2013 18:19:22 +0000 Subject: move kbfunc and mousefunc closer together --- xevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index ddbd8b6..4d31e65 100644 --- a/xevents.c +++ b/xevents.c @@ -253,12 +253,12 @@ xev_handle_buttonpress(XEvent *ee) if (mb == NULL) return; - if (mb->context == MOUSEBIND_CTX_ROOT) { + if (mb->flags == MOUSEBIND_CTX_ROOT) { if (e->window != sc->rootwin) return; cc = &fakecc; cc->sc = screen_fromroot(e->window); - } else if (cc == NULL) /* (mb->context == MOUSEBIND_CTX_WIN */ + } else if (cc == NULL) /* (mb->flags == MOUSEBIND_CTX_WIN */ return; (*mb->callback)(cc, e); -- cgit 1.4.1