mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,9 @@ function align(wibox, align, screen)
|
|||
wibox.x = area.x + (area.width - wibox.width) / 2
|
||||
end
|
||||
end
|
||||
|
||||
-- Update struts regardless of changes
|
||||
wibox_update_strut(wibox)
|
||||
end
|
||||
|
||||
--- Stretch a wibox so it takes all screen width or height.
|
||||
|
|
Loading…
Reference in a new issue