summaryrefslogtreecommitdiff
path: root/scene/main/viewport.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-01 16:28:20 +0200
committerGitHub <noreply@github.com>2020-07-01 16:28:20 +0200
commit2fc3c5bb9f0250cb5caecb79f8dc00c100d1e189 (patch)
treec6c45a4db687fe5ae42019e9f6ac677393f69c4d /scene/main/viewport.h
parent34e011c8a5ba4b9482a44b5601c28c68d65588d3 (diff)
parent239942cfefc51a907b3fe7eff72818b4a7732726 (diff)
Merge pull request #40015 from reduz/fix-embedded_subwindow-input
Ensure embedded mode works again
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r--scene/main/viewport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h
index 11fe4f00d2..d45b321f73 100644
--- a/scene/main/viewport.h
+++ b/scene/main/viewport.h
@@ -441,6 +441,8 @@ private:
bool _sub_windows_forward_input(const Ref<InputEvent> &p_event);
SubWindowResize _sub_window_get_resize_margin(Window *p_subwindow, const Point2 &p_point);
+ virtual bool _can_consume_input_events() const { return true; }
+
protected:
void _set_size(const Size2i &p_size, const Size2i &p_size_2d_override, const Rect2i &p_to_screen_rect, const Transform2D &p_stretch_transform, bool p_allocated);