From 86f2d05382edac78567104e0c993721578fb31e0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 15 Jan 2016 18:43:10 +0100 Subject: [PATCH] awful.menu: Remove useless surface() call The imagebox calls surface() for us. Signed-off-by: Uli Schlachter --- lib/awful/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/menu.lua b/lib/awful/menu.lua index ca8a90f33..c4a0af0f5 100644 --- a/lib/awful/menu.lua +++ b/lib/awful/menu.lua @@ -558,7 +558,7 @@ function menu.entry(parent, args) if type(args.cmd) == "table" then if args.theme.submenu_icon then submenu = wibox.widget.imagebox() - submenu:set_image(surface.load(args.theme.submenu_icon)) + submenu:set_image(args.theme.submenu_icon) else submenu = wibox.widget.textbox() submenu:set_font(args.theme.font)