[macOS] Process events before changing title style to update window frame.

This commit is contained in:
bruvzg 2023-11-15 09:33:23 +02:00
parent baf6b4634d
commit c64c1053e9
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
1 changed files with 1 additions and 0 deletions

View File

@ -8091,6 +8091,7 @@ EditorNode::EditorNode() {
// Extend menu bar to window title. // Extend menu bar to window title.
if (can_expand) { if (can_expand) {
DisplayServer::get_singleton()->process_events();
DisplayServer::get_singleton()->window_set_flag(DisplayServer::WINDOW_FLAG_EXTEND_TO_TITLE, true, DisplayServer::MAIN_WINDOW_ID); DisplayServer::get_singleton()->window_set_flag(DisplayServer::WINDOW_FLAG_EXTEND_TO_TITLE, true, DisplayServer::MAIN_WINDOW_ID);
title_bar->set_can_move_window(true); title_bar->set_can_move_window(true);
} }