mirror of
https://github.com/tmux/tmux.git
synced 2025-11-03 00:06:07 +00:00
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:
2
input.c
2
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
|
||||
|
||||
Reference in New Issue
Block a user