summaryrefslogtreecommitdiff
path: root/src/desktop/view/Subsurface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/view/Subsurface.hpp')
-rw-r--r--src/desktop/view/Subsurface.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/desktop/view/Subsurface.hpp b/src/desktop/view/Subsurface.hpp
index ab74f48c..bb2f6780 100644
--- a/src/desktop/view/Subsurface.hpp
+++ b/src/desktop/view/Subsurface.hpp
@@ -40,7 +40,7 @@ namespace Desktop::View {
void onMap();
void onUnmap();
- void recheckDamageForSubsurfaces();
+ void recheckDamageForSubsurfaces(int depth = 0);
WP<Desktop::View::CSubsurface> m_self;
@@ -58,6 +58,9 @@ namespace Desktop::View {
WP<CWLSubsurfaceResource> m_subsurface;
Vector2D m_lastSize = {};
Vector2D m_lastPosition = {};
+ Vector2D m_lastRecheckGlobalPos;
+ Vector2D m_lastRecheckGlobalSize;
+ bool m_hasLastRecheckGeometry = false;
// if nullptr, means it's a dummy node
WP<Desktop::View::CSubsurface> m_parent;