Do not send focus sequences when focus is enabled or disabled by the

application if it is turned off. GitHub issue 3142.
This commit is contained in:
Nicholas Marriott 2022-04-06 14:30:37 +01:00
parent d6306b634e
commit 18105c8ecb

View File

@ -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