feat(lib: awful: tag): get useless_gap from beautiful if no any

This commit is contained in:
actionless 2015-07-02 23:24:04 +02:00
parent 01ac50c5ed
commit 82549c04cd
1 changed files with 2 additions and 1 deletions

View File

@ -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.