Fix the single screen case

This commit is contained in:
Thomas FORGIONE 2016-11-25 15:08:58 +01:00
parent de1439b024
commit d9740757cd
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
1 changed files with 4 additions and 2 deletions

View File

@ -77,8 +77,10 @@ function change_wallpaper(path, extension)
if screen.count() == 2 and file_exists(path..'-16-9.'..extension) and file_exists(path..'-4-3.'..extension) then if screen.count() == 2 and file_exists(path..'-16-9.'..extension) and file_exists(path..'-4-3.'..extension) then
gears.wallpaper.maximized(path .. '-16-9.' .. extension, 1, true) gears.wallpaper.maximized(path .. '-16-9.' .. extension, 1, true)
gears.wallpaper.maximized(path .. '-4-3.' .. extension, 2, true) gears.wallpaper.maximized(path .. '-4-3.' .. extension, 2, true)
elseif file_exists(path..'.'..extension) then elseif file_exists(path..'-16-9.'..extension) then
gears.wallpaper.maximized(path .. '.' .. extension, 1, true) for s = 1, screen.count() do
gears.wallpaper.maximized(path .. '-16-9.' .. extension, s, true)
end
end end
end end
end end