desktop: Damage subsurface when position changes (#10094)
This commit is contained in:
parent
1ae7e2164c
commit
3fa6320a39
3 changed files with 20 additions and 22 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue