From 0ed4cc6287fba3b8b42dc97e6ca465f193bdc3e4 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 20 Sep 2022 11:12:49 +0300 Subject: [macOS] Add an option to align window buttons in "extend to title" mode. --- editor/editor_node.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') 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); } -- cgit v1.2.3