fix wibox origin when stretched
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4c00ad63a9
commit
05e2ab4d50
|
@ -194,10 +194,10 @@ function stretch(wibox, screen)
|
|||
local area = capi.screen[screen].workarea
|
||||
if position == "right" or position == "left" then
|
||||
wibox.height = area.height - (2 * wibox.border_width)
|
||||
align(wibox, "center")
|
||||
wibox.y = area.y
|
||||
else
|
||||
wibox.width = area.width - (2 * wibox.border_width)
|
||||
align(wibox, "left")
|
||||
wibox.x = area.x
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue