@@ -634,7 +634,7 @@ public final class WidgetWindows {
634634 it. isOpaque = false
635635 it. backgroundColor = . clear
636636 it. level = . floating
637- it. collectionBehavior = [ . fullScreenAuxiliary, . transient]
637+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient, . canJoinAllSpaces ]
638638 it. hasShadow = true
639639 it. contentView = NSHostingView (
640640 rootView: WidgetView (
@@ -660,8 +660,8 @@ public final class WidgetWindows {
660660 it. isReleasedWhenClosed = false
661661 it. isOpaque = false
662662 it. backgroundColor = . clear
663- it. level = . init ( NSWindow . Level . floating . rawValue + 2 )
664- it. collectionBehavior = [ . fullScreenAuxiliary, . transient]
663+ it. level = widgetLevel ( 2 )
664+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient, . canJoinAllSpaces ]
665665 it. hasShadow = true
666666 it. contentView = NSHostingView (
667667 rootView: SharedPanelView (
@@ -694,8 +694,8 @@ public final class WidgetWindows {
694694 it. isReleasedWhenClosed = false
695695 it. isOpaque = false
696696 it. backgroundColor = . clear
697- it. level = . init ( NSWindow . Level . floating . rawValue + 2 )
698- it. collectionBehavior = [ . fullScreenAuxiliary, . transient]
697+ it. level = widgetLevel ( 2 )
698+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient, . canJoinAllSpaces ]
699699 it. hasShadow = false
700700 it. contentView = NSHostingView (
701701 rootView: SuggestionPanelView (
@@ -741,8 +741,8 @@ public final class WidgetWindows {
741741 it. isReleasedWhenClosed = false
742742 it. isOpaque = true
743743 it. backgroundColor = . clear
744- it. level = . floating
745- it. collectionBehavior = [ . fullScreenAuxiliary, . transient]
744+ it. level = widgetLevel ( 0 )
745+ it. collectionBehavior = [ . fullScreenAuxiliary, . transient, . canJoinAllSpaces ]
746746 it. hasShadow = false
747747 it. contentView = NSHostingView (
748748 rootView: ToastPanelView ( store: store. scope (
@@ -784,3 +784,9 @@ class CanBecomeKeyWindow: NSWindow {
784784 override var canBecomeMain : Bool { canBecomeKeyChecker ( ) }
785785}
786786
787+ func widgetLevel( _ addition: Int ) -> NSWindow . Level {
788+ let minimumWidgetLevel : Int
789+ minimumWidgetLevel = NSWindow . Level. floating. rawValue
790+ return . init( minimumWidgetLevel + addition)
791+ }
792+
0 commit comments