aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-15 16:40:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-15 16:40:51 +0000
commit028bbd03a3284d60db802631a71ebb1626befa68 (patch)
tree519820e8309d6879590a7e74563e0870adda3f5d
parentinput: don’t do grid scrollback if mouse events are being captured (diff)
input: don’t do alternate mode scrolling if application is grabbing mouse
-rw-r--r--input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input.c b/input.c
index 0f477acf..ab15fc46 100644
--- a/input.c
+++ b/input.c
@@ -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