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;