[gtk+/native-layout] Drop outstanding cairo surfaces when window is made native



commit 8f125f9b93339bbdc0a63112c3d269f0ad300c96
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 19 16:37:42 2010 +0100

    Drop outstanding cairo surfaces when window is made native
    
    Any old cairo_surface referencing the old impl window will be wrong
    when we make a window native, so drop it.
    
    This fixes bug #599511

 gdk/gdkwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b05d5fa..4510ddd 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1851,6 +1851,8 @@ gdk_window_ensure_native (GdkWindow *window)
   if (impl_window->input_window)
     disabled_extension_events = temporary_disable_extension_events (private);
 
+  gdk_window_drop_cairo_surface (private);
+
   screen = gdk_drawable_get_screen (window);
   visual = gdk_drawable_get_visual (window);
 



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