[gtk+/client-side-windows: 161/284] Split out the flushing of outstanding moves



commit 4455db353fe90d387c58d9d67b20796b72e83973
Author: Alexander Larsson <alex localhost localdomain>
Date:   Thu Jan 22 20:50:06 2009 +0100

    Split out the flushing of outstanding moves
    
    Some places need to only flush the outstanding moves, split
    this into gdk_window_flush_outstanding_move
---
 gdk/gdkwindow.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b63d8f6..ac2aa36 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -241,6 +241,7 @@ static void remove_redirect_from_children (GdkWindowObject   *private,
 static void recompute_visible_regions   (GdkWindowObject *private,
 					 gboolean recalculate_siblings,
 					 gboolean recalculate_children);
+static void gdk_window_flush_outstanding_moves (GdkWindow *window);
 static void gdk_window_flush            (GdkWindow *window);
 static void gdk_window_flush_recursive  (GdkWindowObject *window);
 static void do_move_region_bits_on_impl (GdkWindowObject *private,
@@ -2596,7 +2597,7 @@ move_region_on_impl (GdkWindowObject *private,
  * before drawing directly to the window (i.e. outside a begin/end_paint pair).
  */
 static void
-gdk_window_flush (GdkWindow *window)
+gdk_window_flush_outstanding_moves (GdkWindow *window)
 {
   GdkWindowObject *private;
   GdkWindowObject *impl_window;
@@ -2621,7 +2622,12 @@ gdk_window_flush (GdkWindow *window)
   
   g_list_free (impl_window->outstanding_moves);
   impl_window->outstanding_moves = NULL;
-  
+}
+
+static void
+gdk_window_flush (GdkWindow *window)
+{
+  gdk_window_flush_outstanding_moves (window);
   gdk_window_flush_implicit_paint (window);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]