From 0ea2bbb126374c34339c6e635ade289157691ba2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 15 Jul 2015 18:38:57 +0200 Subject: [PATCH] awful.menu: use beautiful.xresources.apply_dpi for margins --- lib/awful/menu.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/awful/menu.lua b/lib/awful/menu.lua index e92ab01ef..a4cee4fe7 100644 --- a/lib/awful/menu.lua +++ b/lib/awful/menu.lua @@ -15,6 +15,7 @@ local util = require("awful.util") local tags = require("awful.tag") local keygrabber = require("awful.keygrabber") local beautiful = require("beautiful") +local dpi = require("beautiful").xresources.apply_dpi local object = require("gears.object") local surface = require("gears.surface") local cairo = require("lgi").cairo @@ -546,13 +547,13 @@ function menu.entry(parent, args) end iconbox = wibox.widget.imagebox() if iconbox:set_image(icon) then - margin:set_left(2) + margin:set_left(dpi(2)) else iconbox = nil end end if not iconbox then - margin:set_left(args.theme.height + 2) + margin:set_left(args.theme.height + dpi(2)) end -- Create the submenu icon widget local submenu