mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
mir: emit GDK_ENTER_NOTIFY on pointer enter
This commit is contained in:
parent
2374a1b50b
commit
8fac1f688e
@ -386,6 +386,13 @@ handle_motion_event (GdkWindow *window, const MirInputEvent *event)
|
||||
}
|
||||
|
||||
break;
|
||||
case mir_pointer_action_enter:
|
||||
if (!cursor_inside)
|
||||
{
|
||||
cursor_inside = TRUE;
|
||||
generate_crossing_event (window, GDK_ENTER_NOTIFY, x, y, event_time);
|
||||
}
|
||||
break;
|
||||
case mir_pointer_action_leave:
|
||||
if (cursor_inside)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user