mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Merge pull request #95526 from alvinhochun/fix-pr94706
DisplayServerWindows: Fix logic when creating with transient parent
This commit is contained in:
commit
f27724e902
@ -5391,7 +5391,8 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
|
|||||||
{
|
{
|
||||||
WindowData *wd_transient_parent = nullptr;
|
WindowData *wd_transient_parent = nullptr;
|
||||||
HWND owner_hwnd = nullptr;
|
HWND owner_hwnd = nullptr;
|
||||||
if (p_transient_parent != INVALID_WINDOW_ID && !windows.has(p_transient_parent)) {
|
if (p_transient_parent != INVALID_WINDOW_ID) {
|
||||||
|
if (!windows.has(p_transient_parent)) {
|
||||||
ERR_PRINT("Condition \"!windows.has(p_transient_parent)\" is true.");
|
ERR_PRINT("Condition \"!windows.has(p_transient_parent)\" is true.");
|
||||||
p_transient_parent = INVALID_WINDOW_ID;
|
p_transient_parent = INVALID_WINDOW_ID;
|
||||||
} else {
|
} else {
|
||||||
@ -5400,6 +5401,7 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
|
|||||||
owner_hwnd = wd_transient_parent->hWnd;
|
owner_hwnd = wd_transient_parent->hWnd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
WindowData &wd = windows[id];
|
WindowData &wd = windows[id];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user