awful.layout: listen for workarea size changes

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-18 15:54:37 +02:00
parent 5fe32859f7
commit ef588bf8b8
1 changed files with 3 additions and 4 deletions

View File

@ -116,6 +116,9 @@ local function arrange_on_tagged(c, tag)
end
for s = 1, capi.screen.count() do
capi.screen[s]:add_signal("property::workarea", function(screen)
arrange(screen.index)
end)
capi.screen[s]:add_signal("tag::attach", function (screen, tag)
arrange(screen.index)
tag:add_signal("property::mwfact", arrange_prop)
@ -139,10 +142,6 @@ for s = 1, capi.screen.count() do
capi.screen[s]:add_signal("padding", arrange)
end
capi.awesome.add_signal("arrange", function(screen)
arrange(screen)
end)
capi.client.add_signal("focus", function(c) arrange(c.screen) end)
capi.client.add_signal("list", function()
for screen = 1, capi.screen.count() do