core/compositor: Fix dropping cursor buffer data early (#9700)

This commit is contained in:
Lee Bousfield
2025-03-22 17:06:02 -05:00
committed by GitHub
parent 6ab5a0befb
commit fdb7ca6c8f
2 changed files with 4 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ CWLPointerResource::CWLPointerResource(SP<CWlPointer> resource_, SP<CWLSeatResou
return;
}
if (surfResource) {
if (surfResource && surfResource->role->role() != SURFACE_ROLE_CURSOR) {
surfResource->role = makeShared<CCursorSurfaceRole>();
surfResource->updateCursorShm();
}