[gtk+/client-side-windows: 74/284] When creating native window, set the native background



commit 40827b99db228e9ff4865bd44cff139334ee8ed6
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 19 10:38:47 2008 +0100

    When creating native window, set the native background
---
 gdk/gdkwindow.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 8b9c80f..fe76ec7 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1171,6 +1171,10 @@ gdk_window_set_has_native (GdkWindow *window, gboolean has_native)
       recompute_visible_regions (private, FALSE, FALSE);
 
       reparent_to_impl (private);
+
+      GDK_WINDOW_IMPL_GET_IFACE (private->impl)->set_background (window, &private->bg_color);
+      if (private->bg_pixmap != NULL)
+	GDK_WINDOW_IMPL_GET_IFACE (private->impl)->set_back_pixmap (window, private->bg_pixmap);
       
       GDK_WINDOW_IMPL_GET_IFACE (private->impl)->input_shape_combine_region ((GdkWindow *)private, private->input_shape, 0, 0);
 



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