extras: protocol §10.8, feature README, TODO §9

§10.8 records seven findings with citations: the Awake receiver honours
the sender's setting and pokes itself with a mouse jiggle; the fullscreen
rule is asked once, only by the pointer's owner; the excluded-apps list
matches two spellings of the image name; DrawMouseCursor only draws when
the real cursor is suppressed; BlockMouseAtCorners is a 100 px square
around every monitor corner; relative mode moves edge detection to the
controlled machine and gates NextMachine on IsSwitchingByMouseEnabled;
both edge paths set HasSwitchedMachineSinceLastCopy.

README: Assumptions confirmed, Handshakes updated to the shipped API with
four deviations, two open requests (input-capture's easyMouseKeyDown,
clipboard's HasSwitchedMachineSinceLastCopy) and the three provisional
lines taken in ClipboardBridge.swift, Status ticked, Work log with the
corners/relative-mode reading trace.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
lucioandClaude Opus 5 committed 2026-09-16 05:29:33 -07:00
1 parent 21c886165e
commit 39df560fcd
3 files changed
+449 -78

No files matched your search

+22 -6
View File
@@ -189,19 +189,35 @@ concurrency, shared constants, checkpoints) is fixed in `docs/contracts.md`.
## 9. extras (mac + core) — `Sources/MWBMac/Awake.swift`, `Sources/MWBMac/Fullscreen.swift`, `Sources/MWBMac/FakeCursor.swift`
- [ ] `BlockScreenSaverOnOtherMachines`: hold an `IOPMAssertion`
- [x] `BlockScreenSaverOnOtherMachines`: hold an `IOPMAssertion`
(`PreventUserIdleDisplaySleep`) while `Awake` packets arrive within
the heartbeat window; release on `Heartbeat`/timeout (§3.3).
- [ ] `DisableEasyMouseWhenForegroundWindowIsFullscreen` +
Shipped as a 90 s `kIOPMAssertionTimeoutKey` renewed per `Awake`,
so the assertion lapses by itself rather than needing a
`Heartbeat` to clear it (protocol §10.8 note 1).
- [x] `DisableEasyMouseWhenForegroundWindowIsFullscreen` +
`EasyMouseFullscreenSwitchBlockExcludedApps`: frontmost app via
`NSWorkspace`, fullscreen via the Accessibility API; excluded-apps
editor in the settings window.
- [ ] `Settings.drawMouseCursor` accessor + the Behaviour-pane toggle
editor in the settings window. Shipped via `CGWindowListCopy
WindowInfo` bounds rather than the Accessibility API — no extra
TCC grant, and it is the test `SHQueryUserNotificationState` is
approximating (protocol §10.8 note 3). The editor was already in
the Behaviour pane from app-ui.
- [x] `Settings.drawMouseCursor` accessor + the Behaviour-pane toggle
(app-ui's open request), then `DrawMouseCursor` / `DrawMouseEx`: a borderless transparent overlay
window drawing a cursor image where the remote pointer is, so the
user sees where the pointer went (Windows `CustomCursor.cs`).
- [ ] `BlockMouseAtScreenCorners` end-to-end; `MoveMouseRelatively`
end-to-end with `NextMachine` §4.4.
`DrawMouseEx` accepted and ignored. Known deviation for CP3: the
Windows "only when the real cursor is suppressed" gate has no
macOS equivalent (protocol §10.8 note 4).
- [x] `BlockMouseAtScreenCorners` end-to-end; `MoveMouseRelatively`
end-to-end with `NextMachine` §4.4. Verified by reading against
`MachineStuff.cs:203-283`, `Receiver.cs:145-172`,
`Common.cs:516-539` and `InputHook.cs:311-312`; corners needed no
change. Two gaps recorded in the extras README Handshakes:
`NextMachine` ignores the held Ctrl/Shift Easy-Mouse key
(input-capture does not publish it), and nothing sets an
equivalent of `HasSwitchedMachineSinceLastCopy` (clipboard).
- [ ] **Checkpoint CP3** (C5).
## 10. polish — driven by the user's testing