projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ad788
)
focus controller: Update for active window
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 7 Mar 2022 18:32:22 +0000
(11:32 -0700)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gtk/gtkeventcontrollerfocus.c
b/gtk/gtkeventcontrollerfocus.c
index 85026a7acf978ed200054438757600851e72a674..cc4c2b8f0b30ee600003e0859e4c80a06fc5fb14 100644
(file)
--- 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);
}