Fix captures on displays below the main screen

ScreenCaptureKit uses a flipped Y axis relative to AppKit NSScreen frames,
so selections on a display below the main screen produced out-of-bounds
crop rects and "Capture failed". Convert the selection into SCDisplay space
using the matching NSScreen's top edge before cropping.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4-flash-0731
This commit is contained in:
2026-08-12 16:47:48 +08:00
parent af32a36a91
commit 590be2356f
2 changed files with 22 additions and 16 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.1.6</string>
<string>1.1.7</string>
<key>CFBundleVersion</key>
<string>16</string>
<string>17</string>
<key>LSUIElement</key>
<true/>
<key>NSHighResolutionCapable</key>