window: Don't set is-active twice

We are listening to focus change events for this
no need to duplicate the work in ::state-changed.
This commit is contained in:
Matthias Clasen 2020-04-15 17:08:15 -04:00
parent ec848dc83f
commit dbd578eaef

View File

@ -5163,8 +5163,6 @@ surface_state_changed (GtkWidget *widget)
ensure_state_flag_backdrop (widget);
_gtk_window_set_is_active (window, focused);
if (!focused)
gtk_window_set_mnemonics_visible (window, FALSE);
}