Skip to content

Commit

Permalink
Add tag to every screen if tag.screen is not defined on init
Browse files Browse the repository at this point in the history
  • Loading branch information
gdott9 committed Nov 15, 2012
1 parent 751e1df commit 6c771d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Expand Up @@ -874,8 +874,11 @@ end
function init()
local numscr = capi.screen.count()

local screens = {}
for s = 1, capi.screen.count() do table.insert(screens, s) end

for i, j in pairs(config.tags) do
local scr = j.screen or {1}
local scr = j.screen or screens
if type(scr) ~= 'table' then
scr = {scr}
end
Expand Down

0 comments on commit 6c771d9

Please sign in to comment.