You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Some fixes for initial window position and size
- X11: set main window position and size hints correctly - All platforms: update minimum and maximum size of main window at startup Fixes #70984
This commit is contained in:
@@ -1121,6 +1121,7 @@ void Window::_notification(int p_what) {
|
||||
position = DisplayServer::get_singleton()->window_get_position(window_id);
|
||||
size = DisplayServer::get_singleton()->window_get_size(window_id);
|
||||
}
|
||||
_update_window_size(); // Inform DisplayServer of minimum and maximum size.
|
||||
_update_viewport_size(); // Then feed back to the viewport.
|
||||
_update_window_callbacks();
|
||||
RS::get_singleton()->viewport_set_update_mode(get_viewport_rid(), RS::VIEWPORT_UPDATE_WHEN_VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user