From 20d16fb6ac4988416a3e80fcf2b00e2d758b3605 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 4 Mar 2010 02:19:53 +0100 Subject: [PATCH] awful.wibox: update position on height/width property change Changing the width or height of a (right or bottom positioned)wibox, after it was initialized, to a value different than used when it was created would leave the wibox in a wrong position. Position was off by as many pixels as the difference between the old and the new value. Now every wibox is repositioned to reflect this new setup. Signed-off-by: Adrian C. (anrxc) Signed-off-by: Julien Danjou --- lib/awful/wibox.lua.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/awful/wibox.lua.in b/lib/awful/wibox.lua.in index 3d32e8c4..665c6613 100644 --- a/lib/awful/wibox.lua.in +++ b/lib/awful/wibox.lua.in @@ -133,6 +133,8 @@ function attach(wibox, position) wibox:add_signal("property::visible", wibox_update_strut) wibox:add_signal("property::screen", call_wibox_position_hook_on_prop_update) + wibox:add_signal("property::width", call_wibox_position_hook_on_prop_update) + wibox:add_signal("property::height", call_wibox_position_hook_on_prop_update) wibox:add_signal("property::visible", call_wibox_position_hook_on_prop_update) wibox:add_signal("property::border_width", call_wibox_position_hook_on_prop_update) end