Skip to content

Commit

Permalink
fix: gradient freaking out when using an app in full screen
Browse files Browse the repository at this point in the history
closes #264
  • Loading branch information
ejbills committed Aug 23, 2024
1 parent fa787e7 commit 51c3311
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,11 @@ final class SharedPreviewWindowCoordinator: NSWindow {

// Setup window properties
private func setupWindow() {
level = .floating
level = NSWindow.Level(rawValue: 19)
isMovableByWindowBackground = false
collectionBehavior = [.canJoinAllSpaces, .fullScreenAuxiliary]
collectionBehavior = [.canJoinAllSpaces]
backgroundColor = .clear
hasShadow = false

let options: NSTrackingArea.Options = [.mouseEnteredAndExited, .activeAlways]
let trackingArea = NSTrackingArea(rect: frame, options: options, owner: self, userInfo: nil)
contentView?.addTrackingArea(trackingArea)
}

// Hide the window and reset its state
Expand Down

0 comments on commit 51c3311

Please sign in to comment.