From 024ba94c78c6521e69958fcceacce6e452df1584 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 23 Sep 2026 14:47:45 +0800 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab --- src/server/input_service.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 9f830f50c..cfdd8fa3c 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -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());