From 7bf6312e55312481fc859533dc0057030979aa6b Mon Sep 17 00:00:00 2001 From: dzanotto Date: Fri, 21 Jan 2022 02:55:14 +0100 Subject: [PATCH] Fix for move to window to space - https://github.com/ianyh/Amethyst/issues/1174 (#1184) --- Amethyst/Model/Window.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()