fix an error
This commit is contained in:
parent
ad0bd083a1
commit
ae1b91689a
20
rc.lua
20
rc.lua
@ -261,15 +261,6 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
else -- portrait
|
||||
awful.tag(tags, s, awful.layout.suit.fair.horizontal)
|
||||
end
|
||||
awful.tag.attached_connect_signal(nil, "tagged", function(tag)
|
||||
for _,c in pairs(tag:clients()) do
|
||||
if tag.layout == awful.layout.suit.floating then
|
||||
awful.titlebar.show(c)
|
||||
else
|
||||
awful.titlebar.hide(c)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = awful.widget.prompt()
|
||||
@ -339,6 +330,15 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
}
|
||||
end
|
||||
end)
|
||||
awful.tag.attached_connect_signal(nil, "tagged", function(tag)
|
||||
for _,c in pairs(tag:clients()) do
|
||||
if tag.layout == awful.layout.suit.floating and (c.titlebars_enabled == nil or c.titlebars_enabled) then
|
||||
awful.titlebar.show(c)
|
||||
else
|
||||
awful.titlebar.hide(c)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- }}}
|
||||
|
||||
@ -706,7 +706,7 @@ end)
|
||||
|
||||
-- Add a titlebar if titlebars_enabled is set to true in the rules.
|
||||
client.connect_signal("request::titlebars", function(c)
|
||||
if c.first_tag.layout ~= awful.layout.suit.floating then return end
|
||||
if c.first_tag and c.first_tag.layout ~= awful.layout.suit.floating then return end
|
||||
-- buttons for the titlebar
|
||||
local buttons = gears.table.join(
|
||||
awful.button({ }, 1, function()
|
||||
|
Loading…
Reference in New Issue
Block a user