Skip to content

Commit

Permalink
[Window] Fix flashing subwindows.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Feb 18, 2025
1 parent 93d2706 commit f86a24f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,6 @@ DisplayServer::WindowID DisplayServerWindows::create_sub_window(WindowMode p_mod
rendering_device->screen_create(window_id);
}
#endif
wd.initialized = true;
return window_id;
}

Expand Down Expand Up @@ -1674,6 +1673,7 @@ void DisplayServerWindows::show_window(WindowID p_id) {
if (p_id != MAIN_WINDOW_ID) {
_update_window_style(p_id);
}
wd.initialized = true;

if (wd.maximized) {
ShowWindow(wd.hWnd, SW_SHOWMAXIMIZED);
Expand Down Expand Up @@ -6998,7 +6998,6 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
}
}

windows[MAIN_WINDOW_ID].initialized = true;
show_window(MAIN_WINDOW_ID);

#if defined(RD_ENABLED)
Expand Down

0 comments on commit f86a24f

Please sign in to comment.