mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-18 01:44:34 +02:00
shifty: fusion delete/rename tag function
When a tag is empty, delete it, otherwise, rename it.
This commit is contained in:
parent
b2da623de0
commit
e17f7b879c
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue