[mutter] display: Fix checks for KeyPress/ButtonPress



commit 62b884dd42da5f0935329eec2f81f134fd675c08
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Dec 6 00:51:13 2013 -0500

    display: Fix checks for KeyPress/ButtonPress

 src/core/display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 5fadb88..c098da5 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)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]