wibox: fix align
commitb24348219e9a63db12e3074b3b2cc13019e47e0b
authorAlex Alexander <wired@gentoo.org>
Tue, 5 Jan 2010 08:52:43 +0000 (5 09:52 +0100)
committerJulien Danjou <julien@danjou.info>
Tue, 5 Jan 2010 08:52:43 +0000 (5 09:52 +0100)
tree145bcbaedfe618e9c2ad651fc43f45936fd23f3e
parent553b2bfe99d838dd1025d12790719c9f9481fb87
wibox: fix align

awful.wibox.align() in 3.4.x gets the available screen area from
capi.screen[screen].geometry.

this can easily result in overlapping wiboxes since the work area
provided does not account for existing wiboxes.

In my configuration I use a vertical wibox positioned at the
right and it half-overlaps my top wibox because it is streched and
hard-coded to align at the middle.

Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/wibox.lua.in