fix: fast shortcut press would fail to switch windows

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
This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-05-07 02:35:45 +09:00
1 parent 2399698748
commit 2ee5eb5a96
1 file changed
+1 -3
+1 -3
View File
@@ -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 {