[gtk+/client-side-windows: 94/284] Don't flicker when unsetting shape (using bg none)



commit c31ef39d76a2163874634f593e2a4f7c50a3bed6
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 20 20:46:24 2009 +0100

    Don't flicker when unsetting shape (using bg none)
---
 gdk/x11/gdkwindow-x11.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 265e864..e8be420 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -3370,12 +3370,14 @@ do_shape_combine_region (GdkWindow       *window,
 	  : gdk_display_supports_input_shapes (GDK_WINDOW_DISPLAY (window)))
 	{
 	  private->shaped = FALSE;
+	  _gdk_x11_window_tmp_unset_bg ((GdkWindow *)private->parent, TRUE);
 	  XShapeCombineMask (GDK_WINDOW_XDISPLAY (window),
 			     GDK_WINDOW_XID (window),
 			     shape,
 			     0, 0,
 			     None,
 			     ShapeSet);
+	  _gdk_x11_window_tmp_reset_bg ((GdkWindow *)private->parent, TRUE);
 	}
       return;
     }



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