summaryrefslogtreecommitdiff
path: root/scene/main/window.h
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-31 22:40:26 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-10-01 09:54:38 +0200
commit2bf2217b1a0695db73e1b770353c3e1c4580dfd7 (patch)
treecac672b0a9cf273a694dd361010059260515373f /scene/main/window.h
parente69b7083d45c5d8698508cce7086d361c4b1f44c (diff)
Calculate window input event transform only on window change
Diffstat (limited to 'scene/main/window.h')
-rw-r--r--scene/main/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/window.h b/scene/main/window.h
index 786f0ada38..c019730cac 100644
--- a/scene/main/window.h
+++ b/scene/main/window.h
@@ -152,6 +152,8 @@ private:
Viewport *embedder = nullptr;
+ Transform2D window_transform;
+
friend class Viewport; //friend back, can call the methods below
void _window_input(const Ref<InputEvent> &p_ev);