From 3700ce731892463d20415397a2da894d92442fd8 Mon Sep 17 00:00:00 2001 From: Saracen Date: Fri, 6 Oct 2023 19:37:35 +0100 Subject: [PATCH] Fix right-click menu position for the debugger breakpoint tree. --- editor/debugger/script_editor_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp index 6cdcf1a6d0ca..ab8df824e828 100644 --- a/editor/debugger/script_editor_debugger.cpp +++ b/editor/debugger/script_editor_debugger.cpp @@ -1605,7 +1605,7 @@ void ScriptEditorDebugger::_breakpoints_item_rmb_selected(const Vector2 &p_pos, breakpoints_menu->add_icon_item(get_editor_theme_icon(SNAME("Remove")), TTR("Delete All Breakpoints in:") + " " + file, ACTION_DELETE_BREAKPOINTS_IN_FILE); breakpoints_menu->add_icon_item(get_editor_theme_icon(SNAME("Remove")), TTR("Delete All Breakpoints"), ACTION_DELETE_ALL_BREAKPOINTS); - breakpoints_menu->set_position(breakpoints_tree->get_global_position() + p_pos); + breakpoints_menu->set_position(get_screen_position() + get_local_mouse_position()); breakpoints_menu->popup(); }