]> granicus.if.org Git - vim/commitdiff
patch 9.0.0408: GUI test sometimes fails on MS-Windows v9.0.0408
authorK.Takata <kentkt@csc.jp>
Wed, 7 Sep 2022 18:03:42 +0000 (19:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 7 Sep 2022 18:03:42 +0000 (19:03 +0100)
Problem:    GUI test sometimes fails on MS-Windows.
Solution:   Make sure Vim is the foreground window. (Ken Takata, closes #11077)

src/gui_w32.c
src/version.c

index 20b0a5f64e077a2d9e500c560b652fe3847f5993..8ae0cd069b289de758fa6ce09e27e81fa6b7bfb4 100644 (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
index 92fd7e7c83fe1d5b70904abcc210c3464665fc45..c4be8093d22797bb0cdefb4de1e4f60b89eac69e 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    408,
 /**/
     407,
 /**/