summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-10-28 12:20:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-10-28 12:20:29 +0000
commitdf781a4ee00d6252c33d07789c5dbe7f4c0b2c0d (patch)
tree03957189feada83fd5982e9ffba6ef49dc24389c /usr.bin/tmux/input.c
parent93c42e97f6d60d9996efc51771fb5a7342ccf1d5 (diff)
Do not send focus sequences when reporting is enabled, matches other
terminals behaviour.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 39f6af09d6d..a5974a7c555 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.209 2022/09/12 12:02:17 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.210 2022/10/28 12:20:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1797,17 +1797,7 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx)
screen_write_mode_set(sctx, MODE_MOUSE_ALL);
break;
case 1004:
- if (sctx->s->mode & MODE_FOCUSON)
- break;
screen_write_mode_set(sctx, MODE_FOCUSON);
- if (wp == NULL)
- break;
- if (!options_get_number(global_options, "focus-events"))
- break;
- if (wp->flags & PANE_FOCUSED)
- bufferevent_write(wp->event, "\033[I", 3);
- else
- bufferevent_write(wp->event, "\033[O", 3);
break;
case 1005:
screen_write_mode_set(sctx, MODE_MOUSE_UTF8);