awful.layout: listen for workarea size changes
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5fe32859f7
commit
ef588bf8b8
|
@ -116,6 +116,9 @@ local function arrange_on_tagged(c, tag)
|
||||||
end
|
end
|
||||||
|
|
||||||
for s = 1, capi.screen.count() do
|
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)
|
capi.screen[s]:add_signal("tag::attach", function (screen, tag)
|
||||||
arrange(screen.index)
|
arrange(screen.index)
|
||||||
tag:add_signal("property::mwfact", arrange_prop)
|
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)
|
capi.screen[s]:add_signal("padding", arrange)
|
||||||
end
|
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("focus", function(c) arrange(c.screen) end)
|
||||||
capi.client.add_signal("list", function()
|
capi.client.add_signal("list", function()
|
||||||
for screen = 1, capi.screen.count() do
|
for screen = 1, capi.screen.count() do
|
||||||
|
|
Loading…
Reference in New Issue