wibox: do not set need_arrange on wibox detach
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1a0b1a2215
commit
25b3e718d1
|
@ -93,23 +93,29 @@ function getname(layout)
|
||||||
end
|
end
|
||||||
|
|
||||||
hooks.arrange.register(on_arrange)
|
hooks.arrange.register(on_arrange)
|
||||||
hooks.property.register(function (c, prop)
|
hooks.property.register(function (obj, prop)
|
||||||
if type(c) ~= "client" then return end
|
local objtype = type(obj)
|
||||||
if prop == "size_hints_honor"
|
if objtype == "client" then
|
||||||
or prop == "struts"
|
if prop == "size_hints_honor"
|
||||||
or prop == "minimized"
|
or prop == "struts"
|
||||||
or prop == "sticky"
|
or prop == "minimized"
|
||||||
or prop == "fullscreen"
|
or prop == "sticky"
|
||||||
or prop == "maximized_horizontal"
|
or prop == "fullscreen"
|
||||||
or prop == "maximized_vertical"
|
or prop == "maximized_horizontal"
|
||||||
or prop == "border_width"
|
or prop == "maximized_vertical"
|
||||||
or prop == "hide" then
|
or prop == "border_width"
|
||||||
on_arrange(c.screen)
|
or prop == "hide" then
|
||||||
elseif prop == "screen" then
|
on_arrange(obj.screen)
|
||||||
-- If prop is screen, we do not know what was the previous screen, so
|
elseif prop == "screen" then
|
||||||
-- let's arrange all screens :-(
|
-- If prop is screen, we do not know what was the previous screen, so
|
||||||
for screen = 1, capi.screen.count() do
|
-- let's arrange all screens :-(
|
||||||
on_arrange(screen)
|
for screen = 1, capi.screen.count() do
|
||||||
|
on_arrange(screen)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
elseif objtype == "wibox" then
|
||||||
|
if prop == "screen" then
|
||||||
|
on_arrange(obj.screen)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue