[PATCH 2/2] test-xi2: Report correct event coordinates

Thomas Jaeger ThJaeger at gmail.com
Mon Jun 15 18:45:32 PDT 2009


Signed-off-by: Thomas Jaeger <ThJaeger at gmail.com>
---
 src/test_xi2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test_xi2.c b/src/test_xi2.c
index 32fa3f0..b4f4dc1 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -52,7 +52,7 @@ static void print_deviceevent(XIDeviceEvent* event)
     printf("    detail: %d\n", event->detail);
 
     printf("    root: %.2f/%.2f\n", event->root_x, event->root_y);
-    printf("    event: %.2f/%.2f\n", event->event_x, event->event_x);
+    printf("    event: %.2f/%.2f\n", event->event_x, event->event_y);
 
     printf("    buttons:");
     for (i = 0; i < event->buttons->mask_len * 8; i++)
-- 
1.6.3.1


--------------020105080704000405080302--


More information about the xorg-devel mailing list