Skip to content

Commit

Permalink
fix: fast shortcut press would fail to switch windows
Browse files Browse the repository at this point in the history
With many windows open, and a blazing fast shortcut press, AltTab would fail to switch as it would queue the focus task before the cycling task
  • Loading branch information
lwouis committed May 6, 2020
1 parent 2399698 commit 2ee5eb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/logic/Windows.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ class Windows {
}

static func cycleFocusedWindowIndex(_ step: Int) {
DispatchQueue.main.async { () -> () in
updateFocusedWindowIndex(windowIndexAfterCycling(step))
}
updateFocusedWindowIndex(windowIndexAfterCycling(step))
}

static func windowIndexAfterCycling(_ step: Int) -> Int {
Expand Down

0 comments on commit 2ee5eb5

Please sign in to comment.