From 4119e92d82048fbe94ce967a6d7586ee9eb54c1f Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 23 Mar 2010 00:51:29 +0100 Subject: [PATCH] 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) Signed-off-by: Julien Danjou --- lib/awful/wibox.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/wibox.lua.in b/lib/awful/wibox.lua.in index bad2e6fc..2985deb9 100644 --- a/lib/awful/wibox.lua.in +++ b/lib/awful/wibox.lua.in @@ -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.