[gtk/gtk-4-6] focus controller: Update for active window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-6] focus controller: Update for active window
- Date: Wed, 16 Mar 2022 02:20:17 +0000 (UTC)
commit 21d39b6054344db4c0bf89b922e9b15b1556a110
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 7 11:32:22 2022 -0700
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]