From 6ad90e63236408d4b661050a96d2486854c69cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 15 Sep 2020 18:33:58 +0200 Subject: [PATCH] =?UTF-8?q?input:=20don=E2=80=99t=20do=20grid=20scrollback?= =?UTF-8?q?=20if=20mouse=20events=20are=20being=20captured?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index 65dbba0b..0f477acf 100644 --- a/input.c +++ b/input.c @@ -1660,9 +1660,8 @@ mouse_scroll(struct seat *seat, int amount) term_mouse_up( term, button, seat->mouse.row, seat->mouse.col, seat->kbd.shift, seat->kbd.alt, seat->kbd.ctrl); - } - - scrollback(term, amount); + } else + scrollback(term, amount); } }