#6383 Make core console window minimized in foreground mode
This commit is contained in:
parent
80efcfa495
commit
acecfef949
|
@ -368,8 +368,13 @@ MSWindowsWatchdog::startProcessInForeground(String& command)
|
||||||
// clear, as we're reusing process info struct
|
// clear, as we're reusing process info struct
|
||||||
ZeroMemory(&m_processInfo, sizeof(PROCESS_INFORMATION));
|
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;
|
STARTUPINFO si;
|
||||||
setStartupInfo(si);
|
setStartupInfo(si);
|
||||||
|
si.dwFlags |= STARTF_USESHOWWINDOW;
|
||||||
|
si.wShowWindow = SW_MINIMIZE;
|
||||||
|
|
||||||
return CreateProcess(
|
return CreateProcess(
|
||||||
NULL, LPSTR(command.c_str()), NULL, NULL,
|
NULL, LPSTR(command.c_str()), NULL, NULL,
|
||||||
|
|
Loading…
Reference in New Issue