Don't touch private->parent after its been change

The backend reparent may change private->parent, so we must use
the old saved value.
This commit is contained in:
Alexander Larsson 2009-02-05 17:01:21 +01:00 committed by Alexander Larsson
parent 7d51b4179d
commit 8690d19f03

View File

@ -1150,8 +1150,8 @@ gdk_window_reparent (GdkWindow *window,
new_parent_private = (GdkWindowObject *)new_parent;
}
if (private->parent)
private->parent->children = g_list_remove (private->parent->children, window);
if (old_parent)
old_parent->children = g_list_remove (old_parent->children, window);
private->parent = new_parent_private;
private->x = x;