Skip to content

Commit

Permalink
Use global space indices for left and right (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyh committed Feb 7, 2023
1 parent 1b8aa04 commit bf4b366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Amethyst/Managers/WindowTransitionCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class WindowTransitionCoordinator<Target: WindowTransitionTarget> {
}

func pushFocusedWindowToSpaceLeft() {
guard let currentFocusedSpace = CGSpacesInfo<Window>.currentFocusedSpace(), let spaces = CGSpacesInfo<Window>.spacesForFocusedScreen() else {
guard let currentFocusedSpace = CGSpacesInfo<Window>.currentFocusedSpace(), let spaces = CGSpacesInfo<Window>.spacesForAllScreens() else {
return
}

Expand All @@ -176,7 +176,7 @@ class WindowTransitionCoordinator<Target: WindowTransitionTarget> {
}

func pushFocusedWindowToSpaceRight() {
guard let currentFocusedSpace = CGSpacesInfo<Window>.currentFocusedSpace(), let spaces = CGSpacesInfo<Window>.spacesForFocusedScreen() else {
guard let currentFocusedSpace = CGSpacesInfo<Window>.currentFocusedSpace(), let spaces = CGSpacesInfo<Window>.spacesForAllScreens() else {
return
}

Expand Down

0 comments on commit bf4b366

Please sign in to comment.