From 63e9ed547d2b6c27553b71a57d79d8afce15e2c5 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index c222e3e..bd2b715 100644 --- a/xevents.c +++ b/xevents.c @@ -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: xevents.c,v 1.86 2013/07/08 15:46:16 okan Exp $ + * $OpenBSD: xevents.c,v 1.87 2013/07/08 18:19:22 okan Exp $ */ /* @@ -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 v1.2.3-2-gb3c3