[gtk+/client-side-windows: 71/284] Recompute abs_x/y before reparenting windows due to new native window parent



commit c8bdac75085237a02c8161cb37ca981b78be9811
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 18 21:30:56 2008 +0100

    Recompute abs_x/y before reparenting windows due to new native window parent
---
 gdk/gdkwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 227d8b6..851093e 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1141,6 +1141,8 @@ gdk_window_set_has_native (GdkWindow *window, gboolean has_native)
       _gdk_window_impl_new (window, (GdkWindow *)private->parent, screen, visual,
 			    get_native_event_mask (private), &attributes, GDK_WA_COLORMAP);
       new_impl = private->impl;
+
+      recompute_visible_regions (private, FALSE, FALSE);
       
       private->impl = old_impl;
       change_impl (private, new_impl);



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