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>
This commit is contained in:
parent
003369e649
commit
8cc15d80b4
|
@ -144,7 +144,7 @@ end
|
||||||
function align(wibox, align, screen)
|
function align(wibox, align, screen)
|
||||||
local position = get_position(wibox)
|
local position = get_position(wibox)
|
||||||
local screen = screen or wibox.screen or 1
|
local screen = screen or wibox.screen or 1
|
||||||
local area = capi.screen[screen].geometry
|
local area = capi.screen[screen].workarea
|
||||||
|
|
||||||
if position == "right" then
|
if position == "right" then
|
||||||
if align == "right" then
|
if align == "right" then
|
||||||
|
|
Loading…
Reference in New Issue