From e1554d408bf2b990b76f6b82bbef53dfefca146e 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.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp index 9ac9af66..cd0dbc6a 100644 --- a/steam_helper/steam.cpp +++ b/steam_helper/steam.cpp @@ -99,7 +99,7 @@ static void set_active_process_pid(void) RegSetKeyValueA(HKEY_CURRENT_USER, "Software\\Valve\\Steam\\ActiveProcess", "pid", 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) }; static const WCHAR class_nameW[] = {'v','g','u','i','P','o','p','u','p','W','i','n','d','o','w',0}; @@ -112,6 +112,7 @@ static DWORD WINAPI create_steam_window(void *arg) RegisterClassExW(&wndclass); CreateWindowW(class_nameW, steamW, 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)) { @@ -1736,7 +1737,7 @@ int main(int argc, char *argv[]) /* For 2K Launcher. */ event2 = CreateEventA(NULL, FALSE, FALSE, "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();