mirror of
https://github.com/godotengine/godot.git
synced 2025-02-01 06:31:54 +00:00
Merge pull request #30517 from kawa-yoiko/modal-freeze
Fix multiple popup freezing
This commit is contained in:
commit
7a643acb1f
@ -2579,7 +2579,7 @@ void Viewport::_drop_physics_mouseover() {
|
||||
|
||||
List<Control *>::Element *Viewport::_gui_show_modal(Control *p_control) {
|
||||
|
||||
gui.modal_stack.push_back(p_control);
|
||||
List<Control *>::Element *node = gui.modal_stack.push_back(p_control);
|
||||
if (gui.key_focus)
|
||||
p_control->_modal_set_prev_focus_owner(gui.key_focus->get_instance_id());
|
||||
else
|
||||
@ -2590,7 +2590,7 @@ List<Control *>::Element *Viewport::_gui_show_modal(Control *p_control) {
|
||||
_drop_mouse_focus();
|
||||
}
|
||||
|
||||
return gui.modal_stack.back();
|
||||
return node;
|
||||
}
|
||||
|
||||
Control *Viewport::_gui_get_focus_owner() {
|
||||
|
Loading…
Reference in New Issue
Block a user