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.
This commit is contained in:
Daniel Eklöf 2020-01-04 21:35:38 +01:00
parent abc36d8f09
commit 040a1cd00d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);
}