To: vim_dev@googlegroups.com Subject: Patch 9.0.0408 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0408 Problem: GUI test sometimes fails on MS-Windows. Solution: Make sure Vim is the foreground window. (Ken Takata, closes #11077) Files: src/gui_w32.c *** ../vim-9.0.0407/src/gui_w32.c 2022-07-31 12:26:01.424141509 +0100 --- src/gui_w32.c 2022-09-07 19:00:41.388675473 +0100 *************** *** 8649,8654 **** --- 8649,8655 ---- 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 *** ../vim-9.0.0407/src/version.c 2022-09-07 18:21:21.200339788 +0100 --- src/version.c 2022-09-07 19:02:17.024400894 +0100 *************** *** 705,706 **** --- 705,708 ---- { /* Add new patch number below this line */ + /**/ + 408, /**/ -- For a moment, nothing happened. Then, after a second or so, nothing continued to happen. -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///