From 200dafa24affe4b43c217a31dd2803cb0997b37c Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Fri, 26 Feb 2021 10:47:37 +0900 Subject: [PATCH] feat: space number start at 1 instead of 0 (#838) --- src/logic/Spaces.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/Spaces.swift b/src/logic/Spaces.swift index 492c99d6..b253c855 100644 --- a/src/logic/Spaces.swift +++ b/src/logic/Spaces.swift @@ -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