aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-03 12:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-03 12:01:09 +0100
commite77e11ec6bad1207ab15ee0f148b6a084d9f091c (patch)
treefd887a96b8a40b9d19917a9c143cb83308da4b02
parent1184dc08d4c85c489126365896602d151c8080ad (diff)
parent3edda3c5e71d634efd8e1e849328a68fb9da37de (diff)
downloadrtmux-e77e11ec6bad1207ab15ee0f148b6a084d9f091c.tar.gz
rtmux-e77e11ec6bad1207ab15ee0f148b6a084d9f091c.tar.bz2
rtmux-e77e11ec6bad1207ab15ee0f148b6a084d9f091c.zip
Merge branch 'obsd-master'
-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");