input: don’t do alternate mode scrolling if application is grabbing mouse

This commit is contained in:
Daniel Eklöf 2020-09-15 18:40:51 +02:00
parent 6ad90e6323
commit 028bbd03a3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1624,7 +1624,8 @@ mouse_scroll(struct seat *seat, int amount)
amount = abs(amount);
if ((button == BTN_BACK || button == BTN_FORWARD) &&
term->grid == &term->alt && term->alt_scrolling)
term->grid == &term->alt && term->alt_scrolling &&
term->mouse_tracking == MOUSE_NONE)
{
/*
* alternateScroll/faux scrolling - translate mouse