From 97475f24b9550fa945daa1a9318a27ebfcf531f3 Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Fri, 12 Nov 2021 23:11:12 +0900 Subject: [PATCH] Not only wait for game window to be created but also to be shown --- Dalamud.Boot/rewrite_entrypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud.Boot/rewrite_entrypoint.cpp b/Dalamud.Boot/rewrite_entrypoint.cpp index ba7b7ee1a..39863f17f 100644 --- a/Dalamud.Boot/rewrite_entrypoint.cpp +++ b/Dalamud.Boot/rewrite_entrypoint.cpp @@ -198,7 +198,7 @@ HWND try_find_game_window() { DWORD pid; GetWindowThreadProcessId(hwnd, &pid); - if (pid == GetCurrentProcessId()) + if (pid == GetCurrentProcessId() && IsWindowVisible(hwnd)) break; } return hwnd;