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.8.3+ds-2+rpi1~3^2~20^2~4^2~330^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1cc100415f9675c94cb6435bb5d8376b8c9b6a85;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); }