awesome: remove titlebars code

This commit is contained in:
Tom Willemsen 2013-01-29 17:01:56 +01:00
parent 9b4a888206
commit 582e822177

View file

@ -353,28 +353,6 @@ client.connect_signal(
awful.placement.no_offscreen(c) awful.placement.no_offscreen(c)
end end
end end
local titlebars_enabled = false
if titlebars_enabled
and (c.type == "normal" or c.type == "dialog") then
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(awful.titlebar.widget.iconwidget(c))
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
-- The title goes in the middle
local title = awful.titlebar.widget.titlewidget(c)
-- Now bring it all together
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(title)
awful.titlebar(c):set_widget(layout)
end
end) end)
client.connect_signal( client.connect_signal(