cursor: a DRM cache reset keeps the shape it was making room for
The shape being sent was filed in CURSOR_SHAPES before the DRM ceiling cleared it with everything else, so a controller asking for the shape on screen got nothing until the next new shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3d0b80b3de
commit
024ba94c78
@@ -449,6 +449,8 @@ fn run_cursor(sp: MouseCursorService, state: &mut StateCursor) -> ResultType<()>
|
||||
if state.cached_cursor_data.len() >= CURSOR_CACHE_MAX {
|
||||
state.cached_cursor_data.clear();
|
||||
CURSOR_SHAPES.lock().unwrap().clear();
|
||||
// The shape being sent was kept above; keep it past the clear.
|
||||
shared_cursor_shape(msg.clone());
|
||||
}
|
||||
}
|
||||
state.cached_cursor_data.insert(cache_key, msg.clone());
|
||||
|
||||
Reference in New Issue
Block a user