[PATCH 1/2] libinput: Use correct event axis in debugging GUI

code at schoeller.se code at schoeller.se
Fri Jan 23 13:31:04 PST 2015


From: Friedrich Schöller <code at schoeller.se>

Vertical axis values were used for the horizontal axis as well.

Signed-off-by: Friedrich Schöller <code at schoeller.se>
---
 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.2.2



More information about the wayland-devel mailing list