[gtk: 3/19] Move use of _gdk_win32_get_next_tick from synthesize_crossing_events to its callers




commit a32973f56b1fc7cd4ef9772ae5b0feb792688898
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Fri Jul 2 10:17:13 2021 +0200

    Move use of _gdk_win32_get_next_tick from synthesize_crossing_events to its callers

 gdk/win32/gdkevents-win32.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 8204e7a821..bd969e3338 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]