@@ -21,11 +21,13 @@ public final class SpotlightWindowController {
2121 /// that app's fullscreen Space.
2222 /// `.canJoinAllSpaces` keeps the panel reachable from every Space,
2323 /// `.fullScreenAuxiliary` lets it sit alongside fullscreen windows,
24- /// `.stationary` stops it being dragged along during Space
25- /// transitions (which would otherwise yank focus during the swipe),
26- /// and `.ignoresCycle` keeps this transient HUD out of Cmd-` cycling.
24+ /// `.transient` keeps it in the floating Spaces group. `.stationary`
25+ /// looks tempting for all-space overlays, but AppKit treats it like
26+ /// desktop chrome; fullscreen Spaces can then leave a reused panel
27+ /// behind the fullscreen layer.
28+ /// `.ignoresCycle` keeps this transient HUD out of Cmd-` cycling.
2729 nonisolated static let panelCollectionBehavior : NSWindow . CollectionBehavior = [
28- . canJoinAllApplications, . canJoinAllSpaces, . fullScreenAuxiliary, . stationary , . ignoresCycle
30+ . canJoinAllApplications, . canJoinAllSpaces, . fullScreenAuxiliary, . transient , . ignoresCycle
2931 ]
3032 nonisolated static let defaultUnfocusedAlpha : CGFloat = 0.55
3133
@@ -356,6 +358,8 @@ public final class SpotlightWindowController {
356358 }
357359
358360 private func bringPanelToFront( _ panel: NSPanel ) {
361+ Self . configurePanel ( panel)
362+ panel. orderFrontRegardless ( )
359363 panel. makeKeyAndOrderFront ( nil )
360364 panel. orderFrontRegardless ( )
361365 syncFuzzyPreviewPanel ( )
@@ -687,11 +691,20 @@ extension SpotlightWindowController {
687691 if fuzzyController. isVisible { fuzzyController. close ( ) }
688692 commandController. toggle ( shortcuts: shortcuts, preferences: preferences)
689693 case . insertTodayBadge:
690- _ = panel? . firstResponder? . tryToPerform ( #selector( PlaceholderTextView . insertTodayBadgeToken ( _: ) ) , with: nil )
694+ _ = panel? . firstResponder? . tryToPerform (
695+ #selector( PlaceholderTextView . insertTodayBadgeToken ( _: ) ) ,
696+ with: nil
697+ )
691698 case . insertChecklist:
692- _ = panel? . firstResponder? . tryToPerform ( #selector( PlaceholderTextView . insertChecklistToken ( _: ) ) , with: nil )
699+ _ = panel? . firstResponder? . tryToPerform (
700+ #selector( PlaceholderTextView . insertChecklistToken ( _: ) ) ,
701+ with: nil
702+ )
693703 case . toggleChecklist:
694- _ = panel? . firstResponder? . tryToPerform ( #selector( PlaceholderTextView . toggleChecklistShortcut ( _: ) ) , with: nil )
704+ _ = panel? . firstResponder? . tryToPerform (
705+ #selector( PlaceholderTextView . toggleChecklistShortcut ( _: ) ) ,
706+ with: nil
707+ )
695708 case . pinNote:
696709 Task { await session. togglePin ( ) }
697710 case . shareCurrentChat:
0 commit comments