focus controller: Update for active window

When the window gains or looses active status,
update the focus controllers status.
This commit is contained in:
Matthias Clasen 2022-03-07 11:32:22 -07:00
parent a2f30ac1ab
commit 21d39b6054

View File

@ -149,7 +149,8 @@ gtk_event_controller_focus_handle_crossing (GtkEventController *controller,
double x,
double y)
{
if (crossing->type == GTK_CROSSING_FOCUS)
if (crossing->type == GTK_CROSSING_FOCUS ||
crossing->type == GTK_CROSSING_ACTIVE)
update_focus (controller, crossing);
}