1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #95902 from kitbdev/remove-forced-mouse-focus

Clean up Viewport's `forced_mouse_focus`
This commit is contained in:
Rémi Verschelde
2024-09-03 17:38:17 +02:00
5 changed files with 5 additions and 38 deletions

View File

@@ -2592,14 +2592,6 @@ void PopupMenu::clear_autohide_areas() {
autohide_areas.clear();
}
void PopupMenu::take_mouse_focus() {
ERR_FAIL_COND(!is_inside_tree());
if (get_parent()) {
get_parent()->get_viewport()->pass_mouse_focus_to(this, control);
}
}
bool PopupMenu::_set(const StringName &p_name, const Variant &p_value) {
if (property_helper.property_set_value(p_name, p_value)) {
return true;