diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-08-10 14:08:37 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-08-10 14:13:06 +0200 |
commit | 7f92684237fe842621b2653cc8b46288646a61b3 (patch) | |
tree | e8c12140665faaecbc30ef50305aba1e28469916 | |
parent | c68194b951b25c4d9b6cb6b8f7e731b98a535dee (diff) | |
download | gtk+-7f92684237fe842621b2653cc8b46288646a61b3.tar.gz |
Don't ever invalidate the root window
This never worked before csw since the root window is never
set as IS_MAPPED, but with the new viewable check (which is
true for the root window) we could erronously queue exposes
on the root window.
This happened unexpectedly in bug 589369, where metacity
got a GraphicsExpose event on the root window due to some
graphics operation, queueing an expose which would be handled
by clearing that area. That is fixed with this commit.
-rw-r--r-- | gdk/gdkwindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 7a000aaed3..fc0a2379ae 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5135,7 +5135,8 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window, if (private->input_only || !private->viewable || - gdk_region_empty (region)) + gdk_region_empty (region) || + private->window_type == GDK_WINDOW_ROOT) return; visible_region = gdk_drawable_get_visible_region (window); |