forked from AuroraMiddleware/gtk
window: Avoid unnecessary attach-widget resets
This commit is contained in:
parent
9b6ae2e9d5
commit
f01cef05c8
@ -2651,6 +2651,9 @@ gtk_window_set_attached_to (GtkWindow *window,
|
||||
|
||||
priv = window->priv;
|
||||
|
||||
if (priv->attach_widget == attach_widget)
|
||||
return;
|
||||
|
||||
remove_attach_widget (window);
|
||||
|
||||
priv->attach_widget = attach_widget;
|
||||
|
Loading…
Reference in New Issue
Block a user