Skip to content
Browse files

Add tag to every screen if tag.screen is not defined on init

  • Loading branch information...
1 parent 751e1df commit 6c771d9599ba6619e77cef2c8d46ebb70b35a1c1 @gdott9 committed Nov 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 init.lua
View
5 init.lua
@@ -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

0 comments on commit 6c771d9

Please sign in to comment.
Something went wrong with that request. Please try again.