Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8332661504 | ||
|
|
832a18b06c |
@@ -265,11 +265,12 @@ final class CaptureController: NSObject {
|
|||||||
guard isSelecting else { return event }
|
guard isSelecting else { return event }
|
||||||
|
|
||||||
switch type {
|
switch type {
|
||||||
case .tapDisabledByUserInput:
|
case .tapDisabledByUserInput, .tapDisabledByTimeout:
|
||||||
CGEvent.tapEnable(tap: eventTap!, enable: true)
|
// A timed-out tap must be re-enabled; guard against a torn-down tap.
|
||||||
return event
|
if let tap = eventTap {
|
||||||
case .tapDisabledByTimeout:
|
CGEvent.tapEnable(tap: tap, enable: true)
|
||||||
CGEvent.tapEnable(tap: eventTap!, enable: true)
|
CaptureController.log("tap: re-enabled after \(type)")
|
||||||
|
}
|
||||||
return event
|
return event
|
||||||
case .keyDown:
|
case .keyDown:
|
||||||
if event.getIntegerValueField(.keyboardEventKeycode) == 53 {
|
if event.getIntegerValueField(.keyboardEventKeycode) == 53 {
|
||||||
@@ -342,6 +343,7 @@ final class CaptureController: NSObject {
|
|||||||
ResultWindow.shared.show(image: ResultWindow.failureImage("Capture failed. Check Screen Recording permission."))
|
ResultWindow.shared.show(image: ResultWindow.failureImage("Capture failed. Check Screen Recording permission."))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
CaptureController.log("capture done: \(image.width)x\(image.height) — showing result window")
|
||||||
ResultWindow.shared.show(image: image)
|
ResultWindow.shared.show(image: image)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -440,7 +442,7 @@ final class ScreenCapture {
|
|||||||
let backingScale = screen.backingScaleFactor
|
let backingScale = screen.backingScaleFactor
|
||||||
config.width = Int(CGFloat(display.width) * backingScale)
|
config.width = Int(CGFloat(display.width) * backingScale)
|
||||||
config.height = Int(CGFloat(display.height) * backingScale)
|
config.height = Int(CGFloat(display.height) * backingScale)
|
||||||
config.showsCursor = true
|
config.showsCursor = false
|
||||||
|
|
||||||
// ScreenCaptureKit uses a different origin than AppKit for
|
// ScreenCaptureKit uses a different origin than AppKit for
|
||||||
// screens stacked around the main display: per-display,
|
// screens stacked around the main display: per-display,
|
||||||
|
|||||||
+2
-2
@@ -108,9 +108,9 @@ cat > "$APP/Contents/Info.plist" <<'PLIST'
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>Icon</string>
|
<string>Icon</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.7.1</string>
|
<string>1.7.3</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>71</string>
|
<string>73</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user