mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
window: Check whether the new focus widget is the old one
We generally do that for all properties.
This commit is contained in:
parent
929cdd9259
commit
ed4c08d9b3
@ -6524,6 +6524,9 @@ gtk_window_set_focus (GtkWindow *window,
|
||||
if (focus && !gtk_widget_is_sensitive (focus))
|
||||
return;
|
||||
|
||||
if (focus == priv->focus_widget)
|
||||
return;
|
||||
|
||||
if (priv->focus_widget)
|
||||
old_focus = g_object_ref (priv->focus_widget);
|
||||
g_set_object (&priv->focus_widget, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user