Skip to content

Commit f86a24f

Browse files
committed
[Window] Fix flashing subwindows.
1 parent 93d2706 commit f86a24f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform/windows/display_server_windows.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,6 @@ DisplayServer::WindowID DisplayServerWindows::create_sub_window(WindowMode p_mod
16461646
rendering_device->screen_create(window_id);
16471647
}
16481648
#endif
1649-
wd.initialized = true;
16501649
return window_id;
16511650
}
16521651

@@ -1674,6 +1673,7 @@ void DisplayServerWindows::show_window(WindowID p_id) {
16741673
if (p_id != MAIN_WINDOW_ID) {
16751674
_update_window_style(p_id);
16761675
}
1676+
wd.initialized = true;
16771677

16781678
if (wd.maximized) {
16791679
ShowWindow(wd.hWnd, SW_SHOWMAXIMIZED);
@@ -6998,7 +6998,6 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
69986998
}
69996999
}
70007000

7001-
windows[MAIN_WINDOW_ID].initialized = true;
70027001
show_window(MAIN_WINDOW_ID);
70037002

70047003
#if defined(RD_ENABLED)

0 commit comments

Comments
 (0)