shims: Do not select all tags by default.

It will now behave closer to the default config.
This commit is contained in:
Emmanuel Lepage Vallee 2019-03-08 13:39:46 -05:00
parent 50d4e8f04b
commit 7997549067
1 changed files with 10 additions and 1 deletions

View File

@ -2,13 +2,22 @@ local gears_obj = require("gears.object")
local tag, meta = awesome._shim_fake_class()
local function has_selected_tag(s)
for _, t in ipairs(root._tags) do
if t.selected and ((not s) or s == t.screen) then
return true
end
end
return false
end
local function new_tag(_, args)
local ret = gears_obj()
ret.data = {}
ret.name = args.name or "test"
ret.activated = true
ret.selected = true
ret.selected = not has_selected_tag(args.screen)
function ret:clients(_) --TODO handle new
local list = {}