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
67fc0b1810
commit
62ac15d9d8
|
@ -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