Do not send focus sequences when reporting is enabled, matches other
authornicm <nicm@openbsd.org>
Fri, 28 Oct 2022 12:20:28 +0000 (12:20 +0000)
committernicm <nicm@openbsd.org>
Fri, 28 Oct 2022 12:20:28 +0000 (12:20 +0000)
terminals behaviour.

usr.bin/tmux/input.c

index 39f6af0..a5974a7 100644 (file)
@@ -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);