feat: space number start at 1 instead of 0 (#838)
This commit is contained in:
1 parent
2a36f89345
commit
200dafa24a
1 file changed
+1
-1
@@ -45,7 +45,7 @@ class Spaces {
|
|||||||
idsAndIndexes.removeAll()
|
idsAndIndexes.removeAll()
|
||||||
screenSpacesMap.removeAll()
|
screenSpacesMap.removeAll()
|
||||||
visibleSpaces.removeAll()
|
visibleSpaces.removeAll()
|
||||||
var spaceIndex = 0
|
var spaceIndex = SpaceIndex(1)
|
||||||
(CGSCopyManagedDisplaySpaces(cgsMainConnectionId) as! [NSDictionary]).forEach { (screen: NSDictionary) in
|
(CGSCopyManagedDisplaySpaces(cgsMainConnectionId) as! [NSDictionary]).forEach { (screen: NSDictionary) in
|
||||||
let display = screen["Display Identifier"] as! ScreenUuid
|
let display = screen["Display Identifier"] as! ScreenUuid
|
||||||
(screen["Spaces"] as! [NSDictionary]).forEach { (space: NSDictionary) in
|
(screen["Spaces"] as! [NSDictionary]).forEach { (space: NSDictionary) in
|
||||||
|
|||||||
Reference in new issue
Block a user