From f18e4aa66f58bebfc48e728084ddbdac0c47dfa8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 6 Apr 2022 14:30:37 +0100 Subject: Do not send focus sequences when focus is enabled or disabled by the application if it is turned off. GitHub issue 3142. --- input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input.c b/input.c index b1856538..45ccefd6 100644 --- a/input.c +++ b/input.c @@ -1798,6 +1798,8 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx) 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 -- cgit v1.2.3