forked from AuroraMiddleware/gtk
focus controller: Update for active window
When the window gains or looses active status, update the focus controllers status.
This commit is contained in:
parent
a2f30ac1ab
commit
21d39b6054
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user