Move use of _gdk_win32_get_next_tick from synthesize_crossing_events to its callers

This commit is contained in:
Luca Bacci 2021-07-02 10:17:13 +02:00
parent 7762311911
commit a32973f56b
No known key found for this signature in database
GPG Key ID: 8E3C8D989C98883D

View File

@ -1071,7 +1071,7 @@ send_crossing_event (GdkDisplay *display,
event = gdk_crossing_event_new (type,
window,
device_manager->core_pointer,
_gdk_win32_get_next_tick (time_),
time_,
mask,
pt.x / impl->surface_scale,
pt.y / impl->surface_scale,
@ -2256,7 +2256,7 @@ gdk_event_translate (MSG *msg,
GDK_CROSSING_UNGRAB,
&msg->pt,
0, /* TODO: Set right mask */
msg->time,
_gdk_win32_get_next_tick (msg->time),
FALSE);
g_set_object (&implicit_grab_surface, NULL);
g_set_object (&mouse_window, new_window);
@ -2321,7 +2321,7 @@ gdk_event_translate (MSG *msg,
GDK_CROSSING_NORMAL,
&msg->pt,
0, /* TODO: Set right mask */
msg->time,
_gdk_win32_get_next_tick (msg->time),
FALSE);
g_set_object (&mouse_window, new_window);
mouse_window_ignored_leave = NULL;
@ -2414,7 +2414,7 @@ gdk_event_translate (MSG *msg,
GDK_CROSSING_NORMAL,
&msg->pt,
0, /* TODO: Set right mask */
msg->time,
_gdk_win32_get_next_tick (msg->time),
FALSE);
g_set_object (&mouse_window, new_window);
mouse_window_ignored_leave = ignore_leave ? new_window : NULL;