[gtk+/client-side-windows: 199/284] Don't mess with any events on the root window.



commit 33c0c1fba8969bc79e3aae22cd83c7c142a4a802
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Jan 28 13:41:12 2009 +0100

    Don't mess with any events on the root window.
    
    This causes all sorts of weirdness with pointer_over_window
    being the rootwindow and then crashing gdk_window_get_toplevel() later.
    
    With this metacity stops crashing madly.
---
 gdk/gdkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b352150..36cb4ef 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8486,7 +8486,8 @@ _gdk_windowing_got_event (GdkDisplay *display,
 #endif
   
   if (!(is_button_type (event->type) ||
-	is_motion_type (event->type)))
+	is_motion_type (event->type)) ||
+      GDK_WINDOW_TYPE (event_private) == GDK_WINDOW_ROOT)
     return;
 
   if (event_private->parent != NULL &&



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