From e38c52349a837cc10f1124c50cc18984ed52880f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 15 Dec 2011 21:26:35 +0100 Subject: [PATCH] awful.menu: Place submenus on the correct height Before this commit, a submenu was border_width pixels lower than its parent menu entry. Fix this by not adding the border_width to the submenu's position. We still have to add the border_width to the parent menu's width so that the border of the submenu entry doesn't overlap the content of its parent menu (the borders of the two menus do overlap!). Signed-off-by: Uli Schlachter --- lib/awful/menu.lua.in | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 8f1ef4b3b..012847fc0 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -135,7 +135,6 @@ local function set_coords(menu, screen_idx, m_coords) if menu.parent then local w, h = item_position(menu.parent, menu) w = w + menu.parent.theme.border_width - h = h + menu.parent.theme.border_width menu.y = menu.parent.y + h + menu.height > screen_h and screen_h - menu.height or menu.parent.y + h