aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-04 20:35:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-04 20:35:38 +0000
commit040a1cd00df4e070174aa5f747ed73cc76fcfb14 (patch)
treee752b2d0671643acf84eda6d25ac791f6e10fed0
parentwayland: wl_display_flush() never blocks (diff)
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.
-rw-r--r--input.c1
1 files changed, 1 insertions, 0 deletions
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);
}