From c71fa066070b84dd9bb96d41cef5324eab704ce9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 10 Mar 2021 14:48:53 +1000 Subject: [PATCH] tools/debug-gui: start the unaccelerated motion deltas in the screen center Signed-off-by: Peter Hutterer --- tools/libinput-debug-gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c index 64af6449..2de93750 100644 --- a/tools/libinput-debug-gui.c +++ b/tools/libinput-debug-gui.c @@ -765,6 +765,8 @@ map_event_cb(GtkWidget *widget, GdkEvent *event, gpointer data) w->x = w->width/2; w->y = w->height/2; + w->deltas[0].x = w->x; + w->deltas[0].y = w->y; w->scroll.vx = w->width/2; w->scroll.vy = w->height/2;