awful.menu: use actual wibox border width
We check the wibox border width for inappropiate values now, if we set border_width to a negative value (invalid) in our theme and draw it, the actual border_width will be 0 so the menu will be drawn incorrectly. This fixed this. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a56e1b11d3
commit
b097266925
|
@ -316,7 +316,7 @@ function show(menu, keygrabber)
|
||||||
wibox.width = menu.w
|
wibox.width = menu.w
|
||||||
wibox.height = menu.h
|
wibox.height = menu.h
|
||||||
wibox.x = menu.x
|
wibox.x = menu.x
|
||||||
wibox.y = menu.y + (num - 1) * (menu.h + menu.theme.border_width)
|
wibox.y = menu.y + (num - 1) * (menu.h + wibox.border_width)
|
||||||
wibox.screen = screen_index
|
wibox.screen = screen_index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue