From 82549c04cd5b3df34cf81e563115b3d5720f8ed2 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 2 Jul 2015 23:24:04 +0200 Subject: [PATCH] feat(lib: awful: tag): get useless_gap from beautiful if no any --- lib/awful/tag.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index 5b360d72..e5348e19 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -10,6 +10,7 @@ -- Grab environment we need local util = require("awful.util") local timer = require("gears.timer") +local beautiful = require("beautiful") local tostring = tostring local pairs = pairs local ipairs = ipairs @@ -404,7 +405,7 @@ end -- @param t Optional tag. function tag.getgap(t) local t = t or tag.selected() - return tag.getproperty(t, "useless_gap") or 0 + return tag.getproperty(t, "useless_gap") or beautiful.useless_gap or 0 end --- Set the number of master windows.