core/compositor: Fix dropping cursor buffer data early (#9700)
This commit is contained in:
parent
6ab5a0befb
commit
fdb7ca6c8f
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue