diff --git a/lib/beautiful/xresources.lua b/lib/beautiful/xresources.lua index 085fd082..ce6e78ea 100644 --- a/lib/beautiful/xresources.lua +++ b/lib/beautiful/xresources.lua @@ -91,8 +91,8 @@ function xresources.get_dpi(s) if not xresources.dpi then if root then local mm_to_inch = 25.4 - _, h = root.size() - _, hmm = root.size_mm() + local _, h = root.size() + local _, hmm = root.size_mm() if hmm ~= 0 then xresources.dpi = round(h*mm_to_inch/hmm) end