chore: fix new compilation errors from xcode 16.2

This commit is contained in:
lwouis committed 2024-12-28 19:20:14 +01:00
1 parent 51062a2499
commit f92f7ca803
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -68,7 +68,9 @@ extension AXUIElement {
private func value<T>(_ key: String, _ target: T, _ type: AXValueType) throws -> T? {
if let a = try attribute(key, AXValue.self) {
var value = target
AXValueGetValue(a, type, &value)
_ = withUnsafePointer(to: &value) {
AXValueGetValue(a, type, UnsafeMutableRawPointer(mutating: $0))
}
return value
}
return nil
+1 -1
View File
@@ -47,7 +47,7 @@ class PreviewPanel: NSPanel {
// 2. Select a window in the switcher that is on the same monitor as the thumbnails panel, and whose position overlaps with the thumbnails panel
// 3. For a single frame, the preview of the newly selected window can appear above the thumbnails panel before going back underneath it
// Simply using order(.below) is not sufficient to prevent this brief flicker. We explicitly set the preview panel's window level to be one below the thumbnails panel
App.app.previewPanel.level = App.app.thumbnailsPanel.level - 1
App.app.previewPanel.level = NSWindow.Level(rawValue: App.app.previewPanel.level.rawValue - 1)
}
}
}