Skip to content

Commit

Permalink
fix: focused wrong window in rare scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Sep 4, 2020
1 parent 63d8545 commit 66820a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/logic/Windows.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class Windows {
static func moveFocusedWindowIndexAfterWindowDestroyedInBackground(_ destroyedWindowIndex: Int) {
if focusedWindowIndex > destroyedWindowIndex {
cycleFocusedWindowIndex(-1)
} else if focusedWindowIndex == destroyedWindowIndex && !focusedWindow()!.shouldShowTheUser {
cycleFocusedWindowIndex(1)
}
}

Expand Down

0 comments on commit 66820a1

Please sign in to comment.