3

I currently have:

    let window = NSWindow(contentRect: NSRect(x: 300, y: 300, width: 200, height: 200), styleMask: [.borderless], backing: .buffered, defer: true)
    window.backgroundColor = NSColor.green
    window.level = .floating
        
    window.collectionBehavior = [.stationary, .canJoinAllSpaces, .fullScreenAuxiliary]
    window.makeKeyAndOrderFront(nil)

Current behaviour: When space changes (moving between full screen windows) the window moves relative to the desktop/space .

enter image description here

Expected behaviour: I want the window to behave much like the notifications window in macOS, where the window "floats" above the screen even when active space changes.

enter image description here

unknown
  • 788
  • 9
  • 24

0 Answers0