[gtk+/xi2: 1231/1239] GdkDeviceManagerXI: Get X/Y info from extended events.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 1231/1239] GdkDeviceManagerXI: Get X/Y info from extended events.
- Date: Tue, 29 Sep 2009 11:00:00 +0000 (UTC)
commit c04ad104ecbe445f37cbac314e14e95178b5ebd1
Author: Carlos Garnacho <carlos gnome org>
Date: Sun Sep 27 13:42:05 2009 +0200
GdkDeviceManagerXI: Get X/Y info from extended events.
gdk/x11/gdkdevicemanager-xi.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi.c b/gdk/x11/gdkdevicemanager-xi.c
index 9235e51..7883526 100644
--- a/gdk/x11/gdkdevicemanager-xi.c
+++ b/gdk/x11/gdkdevicemanager-xi.c
@@ -415,9 +415,12 @@ gdk_device_manager_xi_translate_event (GdkEventTranslator *translator,
event->button.time = xdbe->time;
event->button.axes = g_new (gdouble, device->num_axes);
+ event->button.x = (gdouble) xdbe->x;
+ event->button.y = (gdouble) xdbe->y;
+
translate_axes (device, window,
- (gdouble) xdbe->x,
- (gdouble) xdbe->y,
+ event->button.x,
+ event->button.y,
xdbe->axis_data);
#if 0
event->button.x_root = event->button.x + priv->abs_x + input_window->root_x;
@@ -524,9 +527,13 @@ gdk_device_manager_xi_translate_event (GdkEventTranslator *translator,
event->motion.device = device;
event->motion.axes = g_new (gdouble, device->num_axes);
+
+ event->motion.x = (gdouble) xdme->x;
+ event->motion.y = (gdouble) xdme->y;
+
translate_axes (device, window,
- (gdouble) xdme->x,
- (gdouble) xdme->y,
+ event->motion.x,
+ event->motion.y,
xdme->axis_data);
#if 0
event->motion.x_root = event->motion.x + priv->abs_x + input_window->root_x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]