             return
         }
         // 2. Is window on active space?
-        let areAllWindowsOnActiveSpace = mainWindowControllers
-            .map { $0.window?.isOnActiveSpace }
+        let isOnActiveSpace = mainWindowControllers
+            .map { $0.window }
             .compactMap { $0 }
-            .allSatisfy { $0 == true }
-        guard areAllWindowsOnActiveSpace else {
-            log.debug("Some MainWindow is NOT on active space. Skip. (\(liveProgramId))")
+            .sorted { $0.orderedIndex < $1.orderedIndex }
+            .first?
+            .isOnActiveSpace ?? false
+        guard isOnActiveSpace else {
+            log.debug("MainWindow is NOT on active space. Skip. (\(liveProgramId))")
             return
         }
         // 3. Is window other than MainWindow presenting?

// MARK: BrowserUrlObserverDelegate Methods
extension AppDelegate: BrowserUrlObserverDelegate {
    func browserUrlObserver(_ browserUrlObserver: BrowserUrlObserverType, didGetUrl liveUrl: URL) {
        log.debug(liveUrl)
        logWindows()
        guard let liveProgramId = liveUrl.absoluteString.extractLiveProgramId() else {
            return
        }

            log.debug("Show MainWindow. (\(liveProgramId))")
            wc.showWindow(self)
        }
    }
}

