[gtk+/xi2] Set device on synthesized enter notify events



commit b226c21629d692c5ef38a1badc9521e6230a2cf4
Author: Kristian Rietveld <kris gtk org>
Date:   Mon Mar 8 11:21:09 2010 +0100

    Set device on synthesized enter notify events

 gdk/quartz/gdkevents-quartz.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index de51f10..ac85298 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -476,6 +476,8 @@ _gdk_quartz_events_send_enter_notify_event (GdkWindow *window)
   event->crossing.detail = GDK_NOTIFY_ANCESTOR;
   event->crossing.state = 0;
 
+  gdk_event_set_device (event, _gdk_display->core_pointer);
+
   append_event (event, TRUE);
 }
 



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