[mutter/wayland] events: Make sure to check the event window of the MapNotify



commit e10fd19d240dbc59eaef0a5fe9e88c45f22fbdfe
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Mar 28 13:46:00 2014 -0400

    events: Make sure to check the event window of the MapNotify
    
    This was lost in a rebase when killing off zaphod mode.

 src/core/events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 137c605..1cbd6ba 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -1374,7 +1374,7 @@ handle_other_xevent (MetaDisplay *display,
       /* NB: override redirect windows wont cause a map request so we
        * watch out for map notifies against any root windows too if a
        * compositor is enabled: */
-      if (window == NULL)
+      if (window == NULL && event->xmap.event == display->screen->xroot)
         {
           window = meta_window_x11_new (display, event->xmap.window,
                                         FALSE, META_COMP_EFFECT_CREATE);


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