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

@ -99,8 +99,10 @@ CWLSubsurfaceResource::~CWLSubsurfaceResource() {
}
void CWLSubsurfaceResource::destroy() {
if (surface && surface->mapped)
if (surface && surface->mapped) {
surface->events.unmap.emit();
surface->unmap();
}
events.destroy.emit();
PROTO::subcompositor->destroyResource(this);
}