summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-11-03 14:39:50 +0100
committerAlexander Larsson <alexl@redhat.com>2009-11-05 12:52:11 +0100
commit8c1ea38d84468a9098e88573ba714cbbe3c80ed5 (patch)
tree1f2c2071ddf0defb68967f173df24b5b2ae4089a /gdk
parent72b69e0094db5ac1f9bf38bea429b45bf2e449e3 (diff)
downloadgtk+-8c1ea38d84468a9098e88573ba714cbbe3c80ed5.tar.gz
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.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkwindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 7ebea1246a..edb9581b51 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4429,6 +4429,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);