sub-menu: Fix horizontal item arrow

This commit is contained in:
Emmanuel Lepage Vallee 2016-06-29 17:00:05 -04:00
parent 1c34c56d0b
commit 2e9e7b1851
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ function module:setup_sub_menu_arrow(item,data)
if (item._private_data.sub_menu_f or item._private_data.sub_menu_m) and not data.disable_submenu_icon then
if not sub_arrow then
sub_arrow = wibox.widget.imagebox() --TODO, make global
sub_arrow.fit = function(box, context,w, h) return (sub_arrow._image and sub_arrow._image:get_width() or 0),item.height end
sub_arrow.fit = function(box, context,w, h)
return (sub_arrow._private.image and sub_arrow._private.image:get_width() or 0),item.height
end
if beautiful.menu_submenu_icon then
sub_arrow:set_image( beautiful.menu_submenu_icon )