Drive capture selection through a CGEventTap

Panel event delivery is unreliable on macOS 26 (clicks pass through even
with the app active and the panel key). The selection flow is now driven
by a CGEventTap that sees and consumes mouse events system-wide: hover
highlights windows, clicks capture them (rounded), drags marquee-select,
Esc cancels. Requires Accessibility permission, prompted on first use;
falls back to panel events when unavailable.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4-flash-0731
This commit is contained in:
2026-09-09 12:08:57 +08:00
parent a7cad2fc2f
commit 7e9cc5b269
4 changed files with 265 additions and 189 deletions
+2 -2
View File
@@ -108,9 +108,9 @@ cat > "$APP/Contents/Info.plist" <<'PLIST'
<key>CFBundleIconFile</key>
<string>Icon</string>
<key>CFBundleShortVersionString</key>
<string>1.6.5</string>
<string>1.7.0</string>
<key>CFBundleVersion</key>
<string>65</string>
<string>70</string>
<key>LSUIElement</key>
<true/>
<key>NSHighResolutionCapable</key>