Skip to content

Commit

Permalink
Fix for move to window to space - #1174 (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzanotto committed Jan 21, 2022
1 parent 966d590 commit 7bf6312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Amethyst/Model/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7bf6312

Please sign in to comment.