From: nicm Date: Fri, 28 Oct 2022 12:20:28 +0000 (+0000) Subject: Do not send focus sequences when reporting is enabled, matches other X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af898047e1e616398d5986de7b78059a0d935be7;p=openbsd Do not send focus sequences when reporting is enabled, matches other terminals behaviour. --- 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 @@ -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);