From b097266925129e6999bfeae6a3d51799fe723ddb Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 18 Nov 2009 14:22:50 +0100 Subject: [PATCH] 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 Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 1eaca260..a13bd5ee 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -316,7 +316,7 @@ function show(menu, keygrabber) wibox.width = menu.w wibox.height = menu.h 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 end