Skip to content

Commit

Permalink
Merge pull request #84927 from bruvzg/macos_ext_frame_upd
Browse files Browse the repository at this point in the history
[macOS] Process events before changing title style to update window frame.
  • Loading branch information
akien-mga committed Nov 16, 2023
2 parents 6ae6cc0 + c64c105 commit b049ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8097,6 +8097,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);
}
Expand Down

0 comments on commit b049ac4

Please sign in to comment.