Skip to content

Commit

Permalink
Update Window.swift (#1203)
Browse files Browse the repository at this point in the history
Closes #1192 

* Update Window.swift

Moved from CGSAddWindowsToSpaces + CGSRemoveWindowsFromSpaces to CGSMoveWindowsToManagedSpace
#1192

* Include updated Silica

Co-authored-by: Ian Ynda-Hummel <[email protected]>
  • Loading branch information
dzanotto and ianyh authored Feb 26, 2022
1 parent 78bdccd commit f682be9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Amethyst/Model/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,9 @@ extension AXWindow: WindowType {
}

func move(toSpace spaceID: CGSSpaceID) {
let currentSpace = CGSGetActiveSpace(CGSMainConnectionID())
let ids = [cgID()]

CGSAddWindowsToSpaces(CGSMainConnectionID(), ids as CFArray, [spaceID] as CFArray)
CGSRemoveWindowsFromSpaces(CGSMainConnectionID(), ids as CFArray, [currentSpace] as CFArray)
CGSMoveWindowsToManagedSpace(CGSMainConnectionID(), ids as CFArray, spaceID)

if UserConfiguration.shared.followWindowsThrownBetweenSpaces() {
focus()
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PODS:
- RxSwiftExt/RxCocoa (5.2.0):
- RxCocoa (~> 5.0)
- RxSwiftExt/Core
- Silica (0.3.3)
- Silica (0.3.4)
- SwiftLint (0.38.2)
- SwiftyBeaver (1.8.4)
- SwiftyJSON (5.0.0)
Expand Down Expand Up @@ -63,7 +63,7 @@ CHECKOUT OPTIONS:
:commit: 04a1379908432bc4e304b38c831d573b1943b3fa
:git: https://github.com/Sunnyyoung/LoginServiceKit.git
Silica:
:commit: fd2c3a469d4e8855c26a1fe0769af2c0cad9f1fb
:commit: 2e9f8aa635d8162e17a7cec9babd11f07cc7d4dc
:git: https://github.com/ianyh/Silica
:submodules: true

Expand All @@ -77,7 +77,7 @@ SPEC CHECKSUMS:
RxRelay: d77f7d771495f43c556cbc43eebd1bb54d01e8e9
RxSwift: 81470a2074fa8780320ea5fe4102807cb7118178
RxSwiftExt: 4ca80336f43c28f11a2825cdd2fc61dd6c044697
Silica: dd6cf910491f30934972a2d6377a8b7b6e6f3210
Silica: ee9ca9f1a9d30a1a0b7e29849b44854a9ef7ca7a
SwiftLint: 8f5d2f903e1c9bcbc832fd16771e80a263ac6cbb
SwiftyBeaver: f9a9aba96a6a6166e21682377804d728b0d20b95
SwiftyJSON: 36413e04c44ee145039d332b4f4e2d3e8d6c4db7
Expand Down

0 comments on commit f682be9

Please sign in to comment.