0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 9.0.0408: GUI test sometimes fails on MS-Windows

Problem:    GUI test sometimes fails on MS-Windows.
Solution:   Make sure Vim is the foreground window. (Ken Takata, closes #11077)
This commit is contained in:
K.Takata 2022-09-07 19:03:42 +01:00 committed by Bram Moolenaar
parent 75a115e8d6
commit fef38d86a1
2 changed files with 3 additions and 0 deletions

View File

@ -8649,6 +8649,7 @@ test_gui_w32_sendevent(dict_T *args)
inputs[0].ki.wVk = vkCode;
if (STRICMP(event, "keyup") == 0)
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
(void)SetForegroundWindow(s_hwnd);
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
}
else

View File

@ -703,6 +703,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
408,
/**/
407,
/**/