             default:
                 break
             }
+        case .mainWindowChanged:
+            guard let window = element as? SIWindow else {
+                return
+            }
+            windowManager.swapInTab(window: window)
         }
     }
 }

        case applicationActivated
        case windowMoved
        case windowResized

        var string: String {
            switch self {

            guard let window = element as? SIWindow else {
                return
            }
            windowManager.swapInTab(window: window)
        case .windowDeminiaturized:
            guard let window = element as? SIWindow else {
                return
