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) <anrxc@sysphere.org> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5987e48385
commit
bafe41e174
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue