From 8edb561f4e28106731e5938184889d7697eb5411 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 21 Jan 2021 09:44:16 +0100 Subject: [PATCH] Run server in background on Windows (fixes #3525) https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow > Displays the window as a minimized window. This value is similar to > SW_SHOWMINIMIZED, except the window is not activated. --- src/base/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/system.c b/src/base/system.c index d7a0f3f46..bde231389 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -3345,7 +3345,7 @@ PROCESS shell_execute(const char *file) info.cbSize = sizeof(SHELLEXECUTEINFOA); info.lpVerb = "open"; info.lpFile = file; - info.nShow = SW_SHOWDEFAULT; + info.nShow = SW_SHOWMINNOACTIVE; info.fMask = SEE_MASK_NOCLOSEPROCESS; ShellExecuteEx(&info); return info.hProcess;