forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
c68194b951
commit
7f92684237
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user