From 3f7770c4539c18bfd756e839ff1a5fd44a70bf91 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:45:09 +0100 Subject: Fix coordinate system for stretched viewports for subwindows. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index ec33e5752e..ef33db389c 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; } -- cgit v1.2.3