mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 08:50:40 +01:00
* annotation: answer viewer draw RPCs and draw strokes on an X11 overlay The official viewer's watch-mode annotation (批注) sends RpcRequest 27 draw_req, which this host never answered, so the viewer reported 批注开启失败 (9998). The schema is taken from the Mac 4.42.0 UURemoteService SwiftProtobuf metadata. Replies go on TEXT because a reply on CONTROL times out. Strokes are drawn on a click-through override-redirect ARGB window, which needs a compositing manager. The window exists only while annotation is on and is removed when the desktop session ends. Co-Authored-By: Claude Opus 5.5 <[email protected]> * annotation: follow root resizes and scope resets to the owning peer Addresses the Codex review on #174. - A RandR resize (on X11 the viewer's resolution choice does this) left the overlay at its old size. The overlay now watches root ConfigureNotify and is rebuilt at the new geometry. Strokes keep the viewer's points and are laid out again. - A delayed reset from a replaced desktop peer could remove the annotation of the viewer that took over. Requests and resets now carry the peer (its PeerActions address), and only the owner's reset, toggle-off or clear applies. The ignored overlay smoke test covers both cases. It always checks the owner takeover, and checks the resize when UU_ANNOTATION_SMOKE_RESIZE is set on a disposable display. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>