From acecfef949973b78ad0325eb100b5f15e9017822 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Thu, 2 Aug 2018 22:05:47 +0100 Subject: [PATCH] #6383 Make core console window minimized in foreground mode --- src/lib/platform/MSWindowsWatchdog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index b31901d1..fe690241 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -368,8 +368,13 @@ MSWindowsWatchdog::startProcessInForeground(String& command) // clear, as we're reusing process info struct ZeroMemory(&m_processInfo, sizeof(PROCESS_INFORMATION)); + // show the console window when in foreground mode, + // so we can close it gracefully, but minimize it + // so it doesn't get in the way. STARTUPINFO si; setStartupInfo(si); + si.dwFlags |= STARTF_USESHOWWINDOW; + si.wShowWindow = SW_MINIMIZE; return CreateProcess( NULL, LPSTR(command.c_str()), NULL, NULL,