Commit 7520bc9
refactor(desktop): replace get-windows and uiohook-napi, isolate xa11y
get-windows brought node-pre-gyp, a GitHub-downloaded Windows addon, and
an ad-hoc-signed Mach-O spawned per capture, for one function. The
snapshot service now resolves the foreground window itself: a short
osascript JXA lookup on macOS and seven Win32 calls through the ffi-rs
loader we already ship on Windows.
uiohook-napi installed a system-wide keyboard hook from a single-maintainer
package for the Windows modifier-pair shortcut. The forked listener now
polls GetAsyncKeyState at 20 Hz, mirroring the macOS design.
xa11y no longer loads in the main process. Windows region capture runs in
a forked RegionSnapShotWorker with a warm standby and a deadline, and the
in-process UIA focus fallback is gone; the worker thread covers that path.
WindowsWindowIcon.ts is dropped in favour of app.getFileIcon, which was
already the fallback.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent e4c5de0 commit 7520bc9
27 files changed
Lines changed: 1052 additions & 1703 deletions
File tree
- apps/desktop
- scripts
- src
- electron
- snapShot
- docs/internals
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | | - | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments