Skip to content

Commit

Permalink
Merge branch 'feature/hide-from-mission-control' into hotfix/0.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
intitni committed Jun 23, 2023
2 parents 684cffe + e5d8152 commit 1f5021d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Core/Sources/SuggestionWidget/SuggestionWidgetController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class SuggestionWidgetController: NSObject {
it.isOpaque = false
it.backgroundColor = .clear
it.level = .init(19)
it.collectionBehavior = [.fullScreenAuxiliary]
it.collectionBehavior = [.fullScreenAuxiliary, .transient]
it.hasShadow = true
it.contentView = NSHostingView(
rootView: WidgetView(
Expand Down Expand Up @@ -72,7 +72,7 @@ public final class SuggestionWidgetController: NSObject {
it.isOpaque = false
it.backgroundColor = .clear
it.level = .init(19)
it.collectionBehavior = [.fullScreenAuxiliary]
it.collectionBehavior = [.fullScreenAuxiliary, .transient]
it.hasShadow = true
it.contentView = NSHostingView(
rootView: TabView(chatWindowViewModel: chatWindowViewModel)
Expand All @@ -93,7 +93,7 @@ public final class SuggestionWidgetController: NSObject {
it.isOpaque = false
it.backgroundColor = .clear
it.level = .init(NSWindow.Level.floating.rawValue + 1)
it.collectionBehavior = [.fullScreenAuxiliary]
it.collectionBehavior = [.fullScreenAuxiliary, .transient]
it.hasShadow = true
it.contentView = NSHostingView(
rootView: SharedPanelView(
Expand All @@ -120,7 +120,7 @@ public final class SuggestionWidgetController: NSObject {
it.isOpaque = false
it.backgroundColor = .clear
it.level = .init(NSWindow.Level.floating.rawValue + 1)
it.collectionBehavior = [.fullScreenAuxiliary]
it.collectionBehavior = [.fullScreenAuxiliary, .transient]
it.hasShadow = true
it.contentView = NSHostingView(
rootView: SuggestionPanelView(
Expand All @@ -147,7 +147,7 @@ public final class SuggestionWidgetController: NSObject {
it.isOpaque = false
it.backgroundColor = .clear
it.level = .floating
it.collectionBehavior = [.fullScreenAuxiliary]
it.collectionBehavior = [.fullScreenAuxiliary, .transient]
it.hasShadow = true
it.contentView = NSHostingView(
rootView: ChatWindowView(viewModel: chatWindowViewModel)
Expand Down Expand Up @@ -240,7 +240,7 @@ public final class SuggestionWidgetController: NSObject {
guard let activeXcode = ActiveApplicationMonitor.activeXcode else { continue }
guard fullscreenDetector.isOnActiveSpace else { continue }
let app = AXUIElementCreateApplication(activeXcode.processIdentifier)
if app.focusedWindow != nil {
if let window = app.focusedWindow, window.isFullScreen {
orderFront()
}
}
Expand Down

0 comments on commit 1f5021d

Please sign in to comment.