From: Matthias Clasen Date: Mon, 7 Mar 2022 18:32:22 +0000 (-0700) Subject: focus controller: Update for active window X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~3^2~23 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=21d39b6054344db4c0bf89b922e9b15b1556a110;p=gtk4.git focus controller: Update for active window When the window gains or looses active status, update the focus controllers status. --- diff --git a/gtk/gtkeventcontrollerfocus.c b/gtk/gtkeventcontrollerfocus.c index 85026a7acf..cc4c2b8f0b 100644 --- a/gtk/gtkeventcontrollerfocus.c +++ b/gtk/gtkeventcontrollerfocus.c @@ -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); }