From 040a1cd00df4e070174aa5f747ed73cc76fcfb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 4 Jan 2020 21:35:38 +0100 Subject: [PATCH] input: scroll: call term_mouse_up() once, after all term_mouse_down() Note that scroll button release events are not actually sent to the client, but this makes the code more correct, logically. --- input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input.c b/input.c index 0d0f1e4f..d2b0d7d3 100644 --- a/input.c +++ b/input.c @@ -657,6 +657,7 @@ mouse_scroll(struct wayland *wayl, int amount) } else { for (int i = 0; i < amount; i++) term_mouse_down(term, button, wayl->mouse.row, wayl->mouse.col); + term_mouse_up(term, button, wayl->mouse.row, wayl->mouse.col); scrollback(term, amount); }