Browse Source

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

bruvzg 1 năm trước cách đây
mục cha
commit
c64c1053e9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/editor_node.cpp

+ 1 - 0
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);
 	}