[mutter] display: Use XI2 constants for mode/detail focus event values



commit d03ffd801e7903d736a4876b42154519a8b743ed
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Dec 16 21:53:19 2012 -0500

    display: Use XI2 constants for mode/detail focus event values
    
    This makes no functional difference, except conceptual clarity.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=647706

 src/core/display.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 7ee9c59..334c07c 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1966,10 +1966,10 @@ handle_window_focus_event (MetaDisplay  *display,
    * keybinding is used.
    */
 
-  if (event->mode == NotifyGrab ||
-      event->mode == NotifyUngrab ||
+  if (event->mode == XINotifyGrab ||
+      event->mode == XINotifyUngrab ||
       /* From WindowMaker, ignore all funky pointer root events */
-      event->detail > NotifyNonlinearVirtual)
+      event->detail > XINotifyNonlinearVirtual)
     {
       meta_topic (META_DEBUG_FOCUS,
                   "Ignoring focus event generated by a grab or other weirdness\n");
@@ -1988,7 +1988,7 @@ handle_window_focus_event (MetaDisplay  *display,
     }
   else if (event->evtype == XI_FocusOut)
     {
-      if (event->detail == NotifyInferior)
+      if (event->detail == XINotifyInferior)
         {
           /* This event means the client moved focus to a subwindow */
           meta_topic (META_DEBUG_FOCUS,


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