For foreign parents, use the real parent not the root (which is what we list as parent in the APIs)

This commit is contained in:
Alexander Larsson
2008-12-03 22:00:56 +01:00
committed by Alexander Larsson
parent d326a638fb
commit ec4f8baa08
3 changed files with 14 additions and 5 deletions

View File

@ -624,6 +624,7 @@ setup_toplevel_window (GdkWindow *window,
void
_gdk_window_impl_new (GdkWindow *window,
GdkWindow *real_parent,
GdkScreen *screen,
GdkVisual *visual,
GdkEventMask event_mask,
@ -652,7 +653,7 @@ _gdk_window_impl_new (GdkWindow *window,
private = (GdkWindowObject *) window;
screen_x11 = GDK_SCREEN_X11 (screen);
xparent = GDK_WINDOW_XID (private->parent);
xparent = GDK_WINDOW_XID (real_parent);
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl = (GdkDrawable *)impl;