workspace: Delete empty tag when unselected
This commit is contained in:
parent
a4e00a79cb
commit
a768a20b06
|
@ -144,6 +144,12 @@ function ws.new(name, args)
|
||||||
end
|
end
|
||||||
local tag = awful.tag.add(name, props)
|
local tag = awful.tag.add(name, props)
|
||||||
|
|
||||||
|
tag:connect_signal("property::selected", function ()
|
||||||
|
if tag.volatile and not tag.selected and #tag:clients() == 0 then
|
||||||
|
tag:delete()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
return handle_args(tag, args)
|
return handle_args(tag, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue