mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-10-17 01:09:35 +00:00
CursorSnapshot gains the plane position x/y. It rides DmabufDesc.cursor_pos and Data::DrmFrame.cursor_pos as a serde-default Option, so a producer that predates the field reads as None on the consumer, and a consumer that predates it ignores the key. The producer reads the cursor once per delivered frame, after the grab, so a WouldBlock retry does no cursor work; the position is a few ms newer than the frame, which the consumer tolerates because it only counts consecutive identical positions. The consumer destructures the field and does not use it yet.