diff options
Diffstat (limited to '')
-rw-r--r-- | src/engine/uithread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/uithread.cpp b/src/engine/uithread.cpp index 39f92142..433cb171 100644 --- a/src/engine/uithread.cpp +++ b/src/engine/uithread.cpp | |||
@@ -134,9 +134,11 @@ static DWORD WINAPI ThreadProc( | |||
134 | info.pUserExperience = &pEngineState->userExperience; | 134 | info.pUserExperience = &pEngineState->userExperience; |
135 | 135 | ||
136 | // Create the window to handle reboots without activating it. | 136 | // Create the window to handle reboots without activating it. |
137 | hWnd = ::CreateWindowExW(WS_EX_TOOLWINDOW, wc.lpszClassName, NULL, WS_POPUP | WS_VISIBLE, CW_USEDEFAULT, SW_SHOWNA, 0, 0, HWND_DESKTOP, NULL, pContext->hInstance, &info); | 137 | hWnd = ::CreateWindowExW(WS_EX_NOACTIVATE, wc.lpszClassName, NULL, WS_POPUP, 0, 0, 0, 0, HWND_DESKTOP, NULL, pContext->hInstance, &info); |
138 | ExitOnNullWithLastError(hWnd, hr, "Failed to create window."); | 138 | ExitOnNullWithLastError(hWnd, hr, "Failed to create window."); |
139 | 139 | ||
140 | ::ShowWindow(hWnd, SW_SHOWNA); | ||
141 | |||
140 | // Persist the window handle and let the caller know we've initialized. | 142 | // Persist the window handle and let the caller know we've initialized. |
141 | pEngineState->hMessageWindow = hWnd; | 143 | pEngineState->hMessageWindow = hWnd; |
142 | ::SetEvent(pContext->hInitializedEvent); | 144 | ::SetEvent(pContext->hInitializedEvent); |