comparison src/os_win32.c @ 2643:e6372ac3ebe5 v7.3.063

updated for version 7.3.063 Problem: Win32: Running a filter command makes Vim lose focus. Solution: Use SW_SHOWMINNOACTIVE instead of SW_SHOWMINIMIZED. (Hong Xu)
author Bram Moolenaar <bram@vim.org>
date Wed, 24 Nov 2010 12:35:21 +0100
parents 0de47f0d731e
children 1a0d346695fa
comparison
equal deleted inserted replaced
2642:840c3cadb842 2643:e6372ac3ebe5
3183 si.dwFlags = STARTF_USESHOWWINDOW; 3183 si.dwFlags = STARTF_USESHOWWINDOW;
3184 /* 3184 /*
3185 * It's nicer to run a filter command in a minimized window, but in 3185 * It's nicer to run a filter command in a minimized window, but in
3186 * Windows 95 this makes the command MUCH slower. We can't do it under 3186 * Windows 95 this makes the command MUCH slower. We can't do it under
3187 * Win32s either as it stops the synchronous spawn workaround working. 3187 * Win32s either as it stops the synchronous spawn workaround working.
3188 * Don't activate the window to keep focus on Vim.
3188 */ 3189 */
3189 if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s()) 3190 if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
3190 si.wShowWindow = SW_SHOWMINIMIZED; 3191 si.wShowWindow = SW_SHOWMINNOACTIVE;
3191 else 3192 else
3192 si.wShowWindow = SW_SHOWNORMAL; 3193 si.wShowWindow = SW_SHOWNORMAL;
3193 si.cbReserved2 = 0; 3194 si.cbReserved2 = 0;
3194 si.lpReserved2 = NULL; 3195 si.lpReserved2 = NULL;
3195 3196