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.
This commit is contained in:
Alexander Larsson 2009-01-28 13:41:12 +01:00 committed by Alexander Larsson
parent 6e56179b03
commit 33c0c1fba8

View 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 &&