From 1cc100415f9675c94cb6435bb5d8376b8c9b6a85 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Mar 2022 11:32:22 -0700 Subject: [PATCH] focus controller: Update for active window When the window gains or looses active status, update the focus controllers status. --- gtk/gtkeventcontrollerfocus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2