mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
awful.tag: fix new when layout is nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a4f8935509
commit
7f7ffca497
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ function new(names, screen, layout)
|
|||
if id == 1 then
|
||||
tags[#tags].selected = true
|
||||
end
|
||||
setproperty(tags[#tags], "layout", layout[#tags] or layout[1] or layout)
|
||||
setproperty(tags[#tags], "layout", layout and (layout[#tags] or layout[1]) or layout)
|
||||
end
|
||||
return tags
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue