Skip to content

Commit 3e8ebb9

Browse files
committed
Merge pull request godotengine#96554 from bruvzg/mac_title_dblc
[macOS] Make gaps between editor titlebar buttons unclickabe to prevent accidental window move/resize.
2 parents 9abf86f + 8009d7c commit 3e8ebb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editor/editor_node.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7165,6 +7165,7 @@ EditorNode::EditorNode() {
71657165
}
71667166

71677167
main_menu = memnew(MenuBar);
7168+
main_menu->set_mouse_filter(Control::MOUSE_FILTER_STOP);
71687169
title_bar->add_child(main_menu);
71697170
main_menu->set_theme_type_variation("MainMenuBar");
71707171
main_menu->set_start_index(0); // Main menu, add to the start of global menu.
@@ -7347,6 +7348,7 @@ EditorNode::EditorNode() {
73477348
}
73487349

73497350
main_editor_button_hb = memnew(HBoxContainer);
7351+
main_editor_button_hb->set_mouse_filter(Control::MOUSE_FILTER_STOP);
73507352
title_bar->add_child(main_editor_button_hb);
73517353

73527354
// Options are added and handled by DebuggerEditorPlugin.
@@ -7441,11 +7443,13 @@ EditorNode::EditorNode() {
74417443
title_bar->add_child(right_spacer);
74427444

74437445
project_run_bar = memnew(EditorRunBar);
7446+
project_run_bar->set_mouse_filter(Control::MOUSE_FILTER_STOP);
74447447
title_bar->add_child(project_run_bar);
74457448
project_run_bar->connect("play_pressed", callable_mp(this, &EditorNode::_project_run_started));
74467449
project_run_bar->connect("stop_pressed", callable_mp(this, &EditorNode::_project_run_stopped));
74477450

74487451
HBoxContainer *right_menu_hb = memnew(HBoxContainer);
7452+
right_menu_hb->set_mouse_filter(Control::MOUSE_FILTER_STOP);
74497453
title_bar->add_child(right_menu_hb);
74507454

74517455
renderer = memnew(OptionButton);

0 commit comments

Comments
 (0)