Merge branch 'wip/chergert/fix-delayed-focus' into 'master'

window: clear move_focus when focus is already set

See merge request GNOME/gtk!3658
This commit is contained in:
Matthias Clasen 2021-06-10 21:31:47 +00:00
commit d29f57fd1d

View File

@ -2024,7 +2024,10 @@ gtk_window_root_set_focus (GtkRoot *root,
return;
if (focus == priv->focus_widget)
return;
{
priv->move_focus = FALSE;
return;
}
if (priv->focus_widget)
old_focus = g_object_ref (priv->focus_widget);