aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2022-06-03 08:09:16 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-06-09 12:28:22 +0100
commit30e06e9d85a54648dd11b107f467c608f153f62c (patch)
tree2cf29dcb35eabc5bf6f69c08c1d16fb45bc00fd0
parent87fe00e8b44901240fc22d7120c1b31e4331f6f5 (diff)
downloadrtmux-30e06e9d85a54648dd11b107f467c608f153f62c.tar.gz
rtmux-30e06e9d85a54648dd11b107f467c608f153f62c.tar.bz2
rtmux-30e06e9d85a54648dd11b107f467c608f153f62c.zip
Do not unintentionally turn off all mouse mode when button is also present.
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index ea10e61e..49cf9795 100644
--- a/tty.c
+++ b/tty.c
@@ -814,7 +814,7 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
tty_puts(tty, "\033[?1006h");
if (mode & MODE_MOUSE_ALL)
tty_puts(tty, "\033[?1000h\033[?1002h\033[?1003h");
- if (mode & MODE_MOUSE_BUTTON)
+ else if (mode & MODE_MOUSE_BUTTON)
tty_puts(tty, "\033[?1000h\033[?1002h");
else if (mode & MODE_MOUSE_STANDARD)
tty_puts(tty, "\033[?1000h");