diff options
author | nicm <nicm> | 2022-06-03 08:09:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-09 12:28:22 +0100 |
commit | 30e06e9d85a54648dd11b107f467c608f153f62c (patch) | |
tree | 2cf29dcb35eabc5bf6f69c08c1d16fb45bc00fd0 /tty.c | |
parent | 87fe00e8b44901240fc22d7120c1b31e4331f6f5 (diff) | |
download | rtmux-30e06e9d85a54648dd11b107f467c608f153f62c.tar.gz rtmux-30e06e9d85a54648dd11b107f467c608f153f62c.tar.bz2 rtmux-30e06e9d85a54648dd11b107f467c608f153f62c.zip |
Do not unintentionally turn off all mouse mode when button is also present.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |