@@ -39,7 +39,7 @@ public final class SuggestionWidgetController: NSObject {
3939 it. isOpaque = false
4040 it. backgroundColor = . clear
4141 it. level = . init( 19 )
42- it. collectionBehavior = [ . fullScreenAuxiliary]
42+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient ]
4343 it. hasShadow = true
4444 it. contentView = NSHostingView (
4545 rootView: WidgetView (
@@ -72,7 +72,7 @@ public final class SuggestionWidgetController: NSObject {
7272 it. isOpaque = false
7373 it. backgroundColor = . clear
7474 it. level = . init( 19 )
75- it. collectionBehavior = [ . fullScreenAuxiliary]
75+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient ]
7676 it. hasShadow = true
7777 it. contentView = NSHostingView (
7878 rootView: TabView ( chatWindowViewModel: chatWindowViewModel)
@@ -93,7 +93,7 @@ public final class SuggestionWidgetController: NSObject {
9393 it. isOpaque = false
9494 it. backgroundColor = . clear
9595 it. level = . init( NSWindow . Level. floating. rawValue + 1 )
96- it. collectionBehavior = [ . fullScreenAuxiliary]
96+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient ]
9797 it. hasShadow = true
9898 it. contentView = NSHostingView (
9999 rootView: SharedPanelView (
@@ -120,7 +120,7 @@ public final class SuggestionWidgetController: NSObject {
120120 it. isOpaque = false
121121 it. backgroundColor = . clear
122122 it. level = . init( NSWindow . Level. floating. rawValue + 1 )
123- it. collectionBehavior = [ . fullScreenAuxiliary]
123+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient ]
124124 it. hasShadow = true
125125 it. contentView = NSHostingView (
126126 rootView: SuggestionPanelView (
@@ -147,7 +147,7 @@ public final class SuggestionWidgetController: NSObject {
147147 it. isOpaque = false
148148 it. backgroundColor = . clear
149149 it. level = . floating
150- it. collectionBehavior = [ . fullScreenAuxiliary]
150+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient ]
151151 it. hasShadow = true
152152 it. contentView = NSHostingView (
153153 rootView: ChatWindowView ( viewModel: chatWindowViewModel)
@@ -240,7 +240,7 @@ public final class SuggestionWidgetController: NSObject {
240240 guard let activeXcode = ActiveApplicationMonitor . activeXcode else { continue }
241241 guard fullscreenDetector. isOnActiveSpace else { continue }
242242 let app = AXUIElementCreateApplication ( activeXcode. processIdentifier)
243- if app. focusedWindow != nil {
243+ if let window = app. focusedWindow, window . isFullScreen {
244244 orderFront ( )
245245 }
246246 }
0 commit comments