diff src/ui.c @ 26462:3af56224dca6 v8.2.3761

patch 8.2.3761: focus change is not passed on to a terminal window Commit: https://github.com/vim/vim/commit/a48d4e44a24191f5495e17d7616771c20ae3e3c1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 8 22:13:38 2021 +0000 patch 8.2.3761: focus change is not passed on to a terminal window Problem: Focus change is not passed on to a terminal window. Solution: If the current window is a terminal and focus events are enabled send a focus event escape sequence to the terminal.
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Dec 2021 23:15:04 +0100
parents a2e6da79274d
children d413104a94c8
line wrap: on
line diff
--- a/src/ui.c
+++ b/src/ui.c
@@ -1145,6 +1145,10 @@ ui_focus_change(
 	last_time = time(NULL);
     }
 
+#ifdef FEAT_TERMINAL
+    term_focus_change(in_focus);
+#endif
+
     /*
      * Fire the focus gained/lost autocommand.
      */