Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e22bcb99c4 | ||
|
|
457e303152 |
@@ -61,11 +61,10 @@ final class CaptureController: NSObject {
|
|||||||
}
|
}
|
||||||
isSelecting = true
|
isSelecting = true
|
||||||
previousApp = NSWorkspace.shared.frontmostApplication
|
previousApp = NSWorkspace.shared.frontmostApplication
|
||||||
if #available(macOS 14.0, *) {
|
// Force activation and log whether it stuck — inactive apps don't
|
||||||
NSApp.activate()
|
// receive overlay clicks.
|
||||||
} else {
|
let activated = NSApp.activate(ignoringOtherApps: true)
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
CaptureController.log("begin: activate(ignoringOtherApps)=\(activated) active=\(NSApp.isActive)")
|
||||||
}
|
|
||||||
overlays = NSScreen.screens.map { screen in
|
overlays = NSScreen.screens.map { screen in
|
||||||
OverlayWindow(
|
OverlayWindow(
|
||||||
screen: screen,
|
screen: screen,
|
||||||
@@ -76,6 +75,7 @@ final class CaptureController: NSObject {
|
|||||||
}
|
}
|
||||||
overlays.forEach { $0.makeKeyAndOrderFront(nil) }
|
overlays.forEach { $0.makeKeyAndOrderFront(nil) }
|
||||||
overlayIDs = overlays.map { $0.windowNumber }
|
overlayIDs = overlays.map { $0.windowNumber }
|
||||||
|
CaptureController.log("begin: \(overlays.count) overlays, ids=\(overlayIDs), active=\(NSApp.isActive)")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A window was picked from hover — capture it with rounded corners.
|
/// A window was picked from hover — capture it with rounded corners.
|
||||||
|
|||||||
+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.6.1</string>
|
<string>1.6.3</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>61</string>
|
<string>63</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user