forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
46d25437a1
commit
e31a6d1fea
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user