[gtk+/client-side-windows: 248/284] Only translate native motion events to motion events



commit d35b72326145cfc40f124e7469d22c57660ff2c8
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 4 20:23:51 2009 +0100

    Only translate native motion events to motion events
    
    Crossing events don't have the device field, which we would like to
    pass on, so only do motion events from motion events.
---
 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4a2153d..bc36881 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8392,7 +8392,7 @@ proxy_pointer_event (GdkDisplay                 *display,
 				      serial);
       _gdk_display_set_window_under_pointer (display, pointer_window);
     }
-  else
+  else if (source_event->type == GDK_MOTION_NOTIFY)
     {
       GdkWindow *event_win;
       guint evmask;



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