Skip to content

Commit

Permalink
Support multiple displays when screensHaveSeparateSpaces is false
Browse files Browse the repository at this point in the history
  • Loading branch information
asmagill authored and cmsj committed Jul 1, 2022
1 parent 6c4f0b5 commit 4634b81
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions extensions/spaces/spaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,11 @@ module.spacesForScreen = function(...)

local screensHaveSeparateSpaces = module.screensHaveSeparateSpaces()
if not screensHaveSeparateSpaces then
if screenID == screen.mainScreen():getUUID() then
screenID = "Main"
for _,v in ipairs(screen.allScreens()) do
if screenID == v:getUUID() then
screenID = "Main"
break
end
end
end

Expand Down Expand Up @@ -458,8 +461,11 @@ module.activeSpaceOnScreen = function(...)

local screensHaveSeparateSpaces = module.screensHaveSeparateSpaces()
if not screensHaveSeparateSpaces then
if screenID == screen.mainScreen():getUUID() then
screenID = "Main"
for _,v in ipairs(screen.allScreens()) do
if screenID == v:getUUID() then
screenID = "Main"
break
end
end
end

Expand Down

0 comments on commit 4634b81

Please sign in to comment.