comparison 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
comparison
equal deleted inserted replaced
26461:97613c2162af 26462:3af56224dca6
1143 # endif 1143 # endif
1144 ); 1144 );
1145 last_time = time(NULL); 1145 last_time = time(NULL);
1146 } 1146 }
1147 1147
1148 #ifdef FEAT_TERMINAL
1149 term_focus_change(in_focus);
1150 #endif
1151
1148 /* 1152 /*
1149 * Fire the focus gained/lost autocommand. 1153 * Fire the focus gained/lost autocommand.
1150 */ 1154 */
1151 need_redraw |= apply_autocmds(in_focus ? EVENT_FOCUSGAINED 1155 need_redraw |= apply_autocmds(in_focus ? EVENT_FOCUSGAINED
1152 : EVENT_FOCUSLOST, NULL, NULL, FALSE, curbuf); 1156 : EVENT_FOCUSLOST, NULL, NULL, FALSE, curbuf);