[gtk+/gtk-3-6] quartz: use the real current event time for generated motion events (cherry picked from commit b4a30
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-6] quartz: use the real current event time for generated motion events (cherry picked from commit b4a30
- Date: Sun, 18 Nov 2012 19:19:15 +0000 (UTC)
commit dae0fb99a46db30d016ade59c5a136884d8efba9
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 18 20:14:32 2012 +0100
quartz: use the real current event time for generated motion events
(cherry picked from commit b4a30877a9315ade584858f7259729dbda614bab)
gdk/quartz/gdkevents-quartz.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index b93c412..0d3cdc9 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -530,7 +530,7 @@ generate_motion_event (GdkWindow *window)
event->any.type = GDK_MOTION_NOTIFY;
event->motion.window = window;
- event->motion.time = GDK_CURRENT_TIME;
+ event->motion.time = get_time_from_ns_event ([NSApp currentEvent]);
event->motion.x = x;
event->motion.y = y;
event->motion.x_root = x_root;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]