From 5eed35b7e04750b197e45534a2d0dd6287f565f1 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 7 Oct 2010 10:15:29 +0200 Subject: [PATCH] awful.menu: Make sure the arrow is always visible By setting the textbox in an align layout's middle, the submenu icon will always get the space it needs and the textbox will get the rest. Previously, the textbox took as much as it wanted and the image got the rest. This looked ugly. Signed-off-by: Uli Schlachter --- 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 9cd2352d..8eb05fc6 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -267,7 +267,7 @@ local function add_item(data, num, item_info) left:add(margin) local layout = wibox.layout.align.horizontal() - layout:set_left(left) + layout:set_middle(left) if submenu then layout:set_right(submenu) end