awful: does not allow a window to have no tag
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
97cf3a7719
commit
1b44fae3b2
|
@ -580,6 +580,8 @@ function client.toggletag(target, c)
|
|||
if sel and sel.screen == target.screen then
|
||||
local tags = sel:tags()
|
||||
if tags[target] then
|
||||
-- If it's the only tag for the window, stop.
|
||||
if #tags == 1 then return end
|
||||
tags[tags[target]] = nil
|
||||
else
|
||||
tags[target] = target
|
||||
|
|
Loading…
Reference in New Issue