[mutter/gnome-3-10] display: Fix checks for KeyPress/ButtonPress



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

    display: Fix checks for KeyPress/ButtonPress
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720545

 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 70c5e2b..c44a42a 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2304,7 +2304,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]