awful: does not allow a window to have no tag

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-03 19:30:25 +02:00
parent 97cf3a7719
commit 1b44fae3b2
1 changed files with 2 additions and 0 deletions

View File

@ -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