mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Not only wait for game window to be created but also to be shown
This commit is contained in:
parent
fee9d27435
commit
97475f24b9
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ HWND try_find_game_window() {
|
||||||
DWORD pid;
|
DWORD pid;
|
||||||
GetWindowThreadProcessId(hwnd, &pid);
|
GetWindowThreadProcessId(hwnd, &pid);
|
||||||
|
|
||||||
if (pid == GetCurrentProcessId())
|
if (pid == GetCurrentProcessId() && IsWindowVisible(hwnd))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return hwnd;
|
return hwnd;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue