From fef38d86a1fc3790d2ca7fc4b3e45071c1d8c79c Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Wed, 7 Sep 2022 19:03:42 +0100 Subject: 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) --- src/gui_w32.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/gui_w32.c b/src/gui_w32.c index 20b0a5f64e..8ae0cd069b 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -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 diff --git a/src/version.c b/src/version.c index 92fd7e7c83..c4be8093d2 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 408, /**/ 407, /**/ -- cgit v1.2.3