mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 13:03:48 -07:00
core/compositor: Fix dropping cursor buffer data early (#9700)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user