diff --git a/Amethyst/Model/Window.swift b/Amethyst/Model/Window.swift index f4eca22c..a33d12f7 100644 --- a/Amethyst/Model/Window.swift +++ b/Amethyst/Model/Window.swift @@ -312,8 +312,9 @@ extension AXWindow: WindowType { func move(toSpace spaceID: CGSSpaceID) { let currentSpace = CGSGetActiveSpace(CGSMainConnectionID()) let ids = [cgID()] - CGSRemoveWindowsFromSpaces(CGSMainConnectionID(), ids as CFArray, [currentSpace] as CFArray) + CGSAddWindowsToSpaces(CGSMainConnectionID(), ids as CFArray, [spaceID] as CFArray) + CGSRemoveWindowsFromSpaces(CGSMainConnectionID(), ids as CFArray, [currentSpace] as CFArray) if UserConfiguration.shared.followWindowsThrownBetweenSpaces() { focus()