From 5c4a530164055d6596003295b44a5f15145c0c33 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 4 Dec 2024 17:30:08 -0600 Subject: [PATCH] steam_helper: Create dummy SteamVR status window. CW-Bug-Id: #24552 --- steam_helper/steam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steam_helper/steam.c b/steam_helper/steam.c index 1ccd914b..5282dce2 100644 --- a/steam_helper/steam.c +++ b/steam_helper/steam.c @@ -69,7 +69,7 @@ static void set_active_process_pid(void) REG_DWORD, &pid, sizeof(pid) ); } -static DWORD WINAPI create_steam_window(void *arg) +static DWORD WINAPI create_steam_windows(void *arg) { static WNDCLASSEXW wndclass = { sizeof(WNDCLASSEXW) }; MSG msg; @@ -79,6 +79,7 @@ static DWORD WINAPI create_steam_window(void *arg) RegisterClassExW(&wndclass); CreateWindowW( wndclass.lpszClassName, L"Steam", WS_POPUP, 40, 40, 400, 300, NULL, NULL, NULL, NULL ); + CreateWindowA("static", "SteamVR Status", WS_POPUP, 0, 0, 0, 0, NULL, NULL, NULL, NULL); while (GetMessageW(&msg, NULL, 0, 0)) { @@ -802,7 +803,7 @@ int main(int argc, char *argv[]) /* For 2K Launcher. */ event2 = CreateEventW( NULL, FALSE, FALSE, L"Global\\Valve_SteamIPC_Class" ); - CreateThread(NULL, 0, create_steam_window, NULL, 0, NULL); + CreateThread(NULL, 0, create_steam_windows, NULL, 0, NULL); set_active_process_pid();