desktop: Damage subsurface when position changes (#10094)

This commit is contained in:
Lee Bousfield 2025-04-16 10:49:01 -05:00 committed by GitHub
parent 1ae7e2164c
commit 3fa6320a39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 22 deletions

View file

@ -49,7 +49,8 @@ class CSubsurface {
WP<CWLSubsurfaceResource> m_pSubsurface;
SP<CWLSurface> m_pWLSurface;
Vector2D m_vLastSize = {};
Vector2D m_vLastSize = {};
Vector2D m_vLastPosition = {};
// if nullptr, means it's a dummy node
WP<CSubsurface> m_pParent;
@ -64,4 +65,5 @@ class CSubsurface {
void initSignals();
void initExistingSubsurfaces(SP<CWLSurfaceResource> pSurface);
void checkSiblingDamage();
void damageLastArea();
};