diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-07-01 09:27:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-07-01 09:27:43 -0300 |
commit | 239942cfefc51a907b3fe7eff72818b4a7732726 (patch) | |
tree | 1ffd31f47befa0afcb182cbecca98fe92ff028cb /scene/main/viewport.h | |
parent | 719609522a30fa9e3b96b028ac5a1d1a65f1678f (diff) |
Ensure embedded mode works again
Also implemented application in/out notifications in X11.
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r-- | scene/main/viewport.h | 2 |
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); |