diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index ec33e5752e6..ef33db389ca 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2691,7 +2691,7 @@ void Viewport::push_input(const Ref &p_event, bool p_local_coords) { ev = p_event; } - if (is_embedding_subwindows() && _sub_windows_forward_input(p_event)) { + if (is_embedding_subwindows() && _sub_windows_forward_input(ev)) { set_input_as_handled(); return; }