[gtk+/xi2: 770/1239] GtkWindow: also copy axes in events forwarded to offscreen windows.



commit c598202395393e1b8ee100c7f07231b2a770027c
Author: Carlos Garnacho <carlos lanedo com>
Date:   Sat Aug 15 18:38:54 2009 +0200

    GtkWindow: also copy axes in events forwarded to offscreen windows.

 gdk/gdkwindow.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 9fa22bf..91d0ba8 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9195,6 +9195,8 @@ proxy_pointer_event (GdkDisplay                 *display,
 	  event->motion.state = state;
 	  event->motion.is_hint = is_hint;
 	  event->motion.device = source_event->motion.device;
+          event->motion.axes = g_memdup (source_event->motion.axes,
+                                         sizeof (gdouble) * source_event->motion.device->num_axes);
 	}
     }
 
@@ -9294,6 +9296,8 @@ proxy_button_event (GdkEvent *source_event,
       event->button.y_root = source_event->button.y_root;
       event->button.state = state;
       event->button.device = source_event->button.device;
+      event->button.axes = g_memdup (source_event->button.axes,
+                                     sizeof (gdouble) * source_event->button.device->num_axes);
 
       if (type == GDK_BUTTON_PRESS)
 	_gdk_event_button_generate (display, event);



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