From 4a90910895e627153ce9215285e1a443cf118d0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Friedrich=20Sch=C3=B6ller?= Date: Fri, 23 Jan 2015 22:31:04 +0100 Subject: [PATCH] tools: Use correct event axis in debugging GUI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Vertical axis values were used for the horizontal axis as well. Introduced 1baf109b40e5d610cb46d313d7c412419af8c9e0 Signed-off-by: Friedrich Schöller Signed-off-by: Peter Hutterer --- tools/event-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/event-gui.c b/tools/event-gui.c index 4f9d7e6..e574bf7 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -370,7 +370,7 @@ handle_event_axis(struct libinput_event *ev, struct window *w) w->vy = clip(w->vy, 0, w->height); } if (h != 0.0) { - w->hx += (int)v; + w->hx += (int)h; w->hx = clip(w->hx, 0, w->width); } } -- 2.7.4