forked from AuroraMiddleware/gtk
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:
parent
7d51b4179d
commit
8690d19f03
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user