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:
Pierre Mazière 2010-03-19 03:17:20 +01:00 committed by Julien Danjou
parent 4c00ad63a9
commit 05e2ab4d50
1 changed files with 2 additions and 2 deletions

View File

@ -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