mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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:
parent
75a115e8d6
commit
fef38d86a1
@ -8649,6 +8649,7 @@ test_gui_w32_sendevent(dict_T *args)
|
|||||||
inputs[0].ki.wVk = vkCode;
|
inputs[0].ki.wVk = vkCode;
|
||||||
if (STRICMP(event, "keyup") == 0)
|
if (STRICMP(event, "keyup") == 0)
|
||||||
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
|
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
|
||||||
|
(void)SetForegroundWindow(s_hwnd);
|
||||||
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
|
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -703,6 +703,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
408,
|
||||||
/**/
|
/**/
|
||||||
407,
|
407,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user