]> Pileus Git - ~andy/gtk/commitdiff
Don't mess with any events on the root window.
authorAlexander Larsson <alexl@redhat.com>
Wed, 28 Jan 2009 12:41:12 +0000 (13:41 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:29 +0000 (10:15 +0200)
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

index b3521504d6d07877774fec0cb8cbfa3ca49bd3f2..36cb4ef5bb6aa8da81edc16aab00d9a7c5fc08e0 100644 (file)
@@ -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 &&