[gtk+/gtk-2-24] quartz: use the real current event time for generated motion events
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] quartz: use the real current event time for generated motion events
- Date: Sun, 18 Nov 2012 19:16:19 +0000 (UTC)
commit b4a30877a9315ade584858f7259729dbda614bab
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
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 e7fd3cd..aedd194 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -582,7 +582,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]