summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-09-20 13:36:34 +0200
committerGitHub <noreply@github.com>2022-09-20 13:36:34 +0200
commit34e28f2fb5fdc4fde65dc2e0c680cab26a6c86e5 (patch)
tree3966fc2ef72c6247dfbc58129144b32a21fc1945 /editor
parentaa553f403099a31520ab0c75a43f352642170d5f (diff)
parent0ed4cc6287fba3b8b42dc97e6ca465f193bdc3e4 (diff)
Merge pull request #66152 from bruvzg/mac_title_button_pos
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 6701fec541..a2f2b6c625 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -7528,6 +7528,7 @@ EditorNode::EditorNode() {
// Extend menu bar to window title.
if (can_expand) {
+ DisplayServer::get_singleton()->window_set_window_buttons_offset(Vector2i(menu_hb->get_minimum_size().y / 2, menu_hb->get_minimum_size().y / 2), DisplayServer::MAIN_WINDOW_ID);
DisplayServer::get_singleton()->window_set_flag(DisplayServer::WINDOW_FLAG_EXTEND_TO_TITLE, true, DisplayServer::MAIN_WINDOW_ID);
menu_hb->set_can_move_window(true);
}