From c64c1053e958645b71f32a165ce50a421ffc3569 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:33:23 +0200 Subject: [PATCH] [macOS] Process events before changing title style to update window frame. --- editor/editor_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 207f5241942..01621874c17 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -8091,6 +8091,7 @@ EditorNode::EditorNode() { // Extend menu bar to window title. 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); title_bar->set_can_move_window(true); }