feat(lib: awful: tag): get useless_gap from beautiful if no any
This commit is contained in:
parent
01ac50c5ed
commit
82549c04cd
|
@ -10,6 +10,7 @@
|
||||||
-- Grab environment we need
|
-- Grab environment we need
|
||||||
local util = require("awful.util")
|
local util = require("awful.util")
|
||||||
local timer = require("gears.timer")
|
local timer = require("gears.timer")
|
||||||
|
local beautiful = require("beautiful")
|
||||||
local tostring = tostring
|
local tostring = tostring
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
|
@ -404,7 +405,7 @@ end
|
||||||
-- @param t Optional tag.
|
-- @param t Optional tag.
|
||||||
function tag.getgap(t)
|
function tag.getgap(t)
|
||||||
local t = t or tag.selected()
|
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
|
end
|
||||||
|
|
||||||
--- Set the number of master windows.
|
--- Set the number of master windows.
|
||||||
|
|
Loading…
Reference in New Issue