Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit a0c32ec

Browse files
committed
layout should use UUID even when "Displays have separate spaces" is unchecked
1 parent 92549b4 commit a0c32ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: init.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,13 @@ end
417417
module.layout = function()
418418
local results = {}
419419
for i,v in ipairs(internal.details()) do
420-
results[v["Display Identifier"]] = {}
420+
local screenID = v["Display Identifier"]
421+
if screenID == "Main" then
422+
screenID = module.mainScreenUUID()
423+
end
424+
results[screenID] = {}
421425
for j,k in ipairs(v.Spaces) do
422-
table.insert(results[v["Display Identifier"]], k.ManagedSpaceID)
426+
table.insert(results[screenID], k.ManagedSpaceID)
423427
end
424428
end
425429
return results

0 commit comments

Comments
 (0)