diff --git a/src/logic/Windows.swift b/src/logic/Windows.swift index 08107433..c5e44fac 100644 --- a/src/logic/Windows.swift +++ b/src/logic/Windows.swift @@ -40,6 +40,8 @@ class Windows { static func moveFocusedWindowIndexAfterWindowDestroyedInBackground(_ destroyedWindowIndex: Int) { if focusedWindowIndex > destroyedWindowIndex { cycleFocusedWindowIndex(-1) + } else if focusedWindowIndex == destroyedWindowIndex && !focusedWindow()!.shouldShowTheUser { + cycleFocusedWindowIndex(1) } }