feat: space number start at 1 instead of 0 (#838)

This commit is contained in:
Louis Pontoise
2021-02-26 11:47:58 +09:00
committed by lwouis
parent 2a36f89345
commit 200dafa24a
+1 -1
View File
@@ -45,7 +45,7 @@ class Spaces {
idsAndIndexes.removeAll()
screenSpacesMap.removeAll()
visibleSpaces.removeAll()
var spaceIndex = 0
var spaceIndex = SpaceIndex(1)
(CGSCopyManagedDisplaySpaces(cgsMainConnectionId) as! [NSDictionary]).forEach { (screen: NSDictionary) in
let display = screen["Display Identifier"] as! ScreenUuid
(screen["Spaces"] as! [NSDictionary]).forEach { (space: NSDictionary) in