From 62b884dd42da5f0935329eec2f81f134fd675c08 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 6 Dec 2013 00:51:13 -0500 Subject: [PATCH] display: Fix checks for KeyPress/ButtonPress --- src/core/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/display.c b/src/core/display.c index 5fadb8826..c098da530 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -2292,7 +2292,7 @@ event_callback (XEvent *event, XIEnterEvent *enter_event = (XIEnterEvent *) input_event; if (window && !window->override_redirect && - ((input_event->type == XI_KeyPress) || (input_event->type == XI_ButtonPress))) + ((input_event->evtype == XI_KeyPress) || (input_event->evtype == XI_ButtonPress))) { if (CurrentTime == display->current_time) {