focus controller: Update for active window
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Mar 2022 18:32:22 +0000 (11:32 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Mar 2022 13:06:47 +0000 (06:06 -0700)
When the window gains or looses active status,
update the focus controllers status.

gtk/gtkeventcontrollerfocus.c

index 85026a7acf978ed200054438757600851e72a674..cc4c2b8f0b30ee600003e0859e4c80a06fc5fb14 100644 (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);
 }