awful.wibox: update struts on align()
Setting width or height (horizontal or vertical) to an arbitrary value causes the wibox not to be stretched. Instead the align() function is called, which might not modify any wibox property in many situations, or none when align parameter was not provided by the user. The major side effect is that wibox struts were never updated and clients covered the wibox (until a first signal handler caused struts to be updated). Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f6d2fa058e
commit
4119e92d82
|
@ -182,6 +182,9 @@ function align(wibox, align, screen)
|
||||||
wibox.x = area.x + (area.width - wibox.width) / 2
|
wibox.x = area.x + (area.width - wibox.width) / 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Update struts regardless of changes
|
||||||
|
wibox_update_strut(wibox)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Stretch a wibox so it takes all screen width or height.
|
--- Stretch a wibox so it takes all screen width or height.
|
||||||
|
|
Loading…
Reference in New Issue