diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-03-10 14:48:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-03-11 10:40:00 +1000 |
commit | c71fa066070b84dd9bb96d41cef5324eab704ce9 (patch) | |
tree | 26ca16a34aaf82f64f38b4130536a3b2afd9ec3b | |
parent | de70661213a916065dedeefcd617736a9d48da40 (diff) | |
download | libinput-c71fa066070b84dd9bb96d41cef5324eab704ce9.tar.gz |
tools/debug-gui: start the unaccelerated motion deltas in the screen center
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | tools/libinput-debug-gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |