diff options
author | Thomas ten Cate <ttencate@gmail.com> | 2023-02-14 12:15:14 +0100 |
---|---|---|
committer | Thomas ten Cate <ttencate@gmail.com> | 2023-02-14 12:15:14 +0100 |
commit | 8a17f94ab2151eb5d953e4f2899c2b09cfa800f7 (patch) | |
tree | b0117f2d1920f05f0f7c81abacdb10ddbca823a4 /scene/main | |
parent | 4848877b802b17f4ab1aecfde42c81a7cc9b6f08 (diff) |
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
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 9092be93e6..6fbf6ccb81 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -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); |