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:
1 parent
2399698748
commit
2ee5eb5a96
1 file changed
+1
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user