Flush outstanding stuff when clearing directly on a window

Clearing will directly modify the contents of the window, so we need
to flush any outstanding moves or double-buffering.
(cherry picked from commit 8c1ea38d84)
This commit is contained in:
Alexander Larsson
2009-11-03 14:39:50 +01:00
parent 9d43f0fff0
commit a68e02b7c7

View File

@@ -4431,6 +4431,10 @@ gdk_window_clear_region_internal (GdkWindow *window,
gdk_region_intersect (copy,
private->clip_region_with_children);
/* Drawing directly to the window, flush anything outstanding to
guarantee ordering. */
gdk_window_flush (window);
impl_iface->clear_region (window, copy, send_expose);
gdk_region_destroy (copy);