shifty: fusion delete/rename tag function

When a tag is empty, delete it, otherwise, rename it.
This commit is contained in:
Vincent Bernat 2015-06-14 13:07:36 +02:00
parent b2da623de0
commit e17f7b879c
2 changed files with 10 additions and 3 deletions

View file

@ -449,7 +449,7 @@ function del(tag)
for i, c in ipairs(clients) do
if c.sticky then sticky = sticky + 1 end
end
if #clients > sticky then return end
if #clients > sticky then return false end
-- store index for later
index_cache[scr][getname(t)] = idx
@ -469,6 +469,7 @@ function del(tag)
-- FIXME: what is this for??
if capi.client.focus then capi.client.focus:raise() end
return true
end
--is_client_tagged : replicate behavior in tag.c - returns true if the