[fix] restore remote cursors on Linux without a pointing device, refs #130

This commit is contained in:
dijunkun
2026-10-29 10:43:53 +08:00
parent 273cbc0adf
commit 199d29a6dd
9 changed files with 381 additions and 21 deletions
@@ -3,7 +3,7 @@
#include <cstdint>
#include <remote_cursor_shape.h>
#include <remote_action.h>
namespace crossdesk {
@@ -11,9 +11,11 @@ struct SharedCursorState {
uint64_t generation = 0;
bool visible = false;
RemoteCursorShape shape = RemoteCursorShape::default_cursor;
CursorRenderMode render_mode = CursorRenderMode::unknown;
CursorHiddenReason hidden_reason = CursorHiddenReason::sampling_failed;
};
void PublishSharedCursorState(bool visible, RemoteCursorShape shape);
void PublishSharedCursorState(CursorRenderMode mode, RemoteCursorShape shape);
bool GetSharedCursorState(SharedCursorState* state);
void ClearSharedCursorState();