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

This commit is contained in:
Louis Pontoise authored and lwouis committed 2021-02-26 11:47:58 +09:00
1 parent 2a36f89345
commit 200dafa24a
1 file changed
+1 -1
+1 -1
View File
@@ -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