Keep track of the impl windows wrapper directly with a ref

This is needed so that the ->wrapper of the impl window doesn't
go away while there are virtual windows referencing the impl
window.
This commit is contained in:
Alexander Larsson
2009-01-23 20:08:39 +01:00
committed by Alexander Larsson
parent cf54a2c68e
commit 6a0d317866
3 changed files with 33 additions and 10 deletions

View File

@ -441,6 +441,7 @@ _gdk_windowing_window_init (GdkScreen * screen)
private = (GdkWindowObject *) screen_x11->root_window;
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl_window = private;
impl = GDK_WINDOW_IMPL_X11 (private->impl);
draw_impl = GDK_DRAWABLE_IMPL_X11 (private->impl);
@ -916,6 +917,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
private = (GdkWindowObject *) window;
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl_window = private;
impl = GDK_WINDOW_IMPL_X11 (private->impl);
draw_impl = GDK_DRAWABLE_IMPL_X11 (private->impl);