Merge branch 'fix_tag_remove_v1' of git://github.com/Elv13/awesome-1

This commit is contained in:
Uli Schlachter 2014-10-18 10:02:13 +02:00
commit 1c72186cbc
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ function tag.delete(target_tag, fallback_tag)
if (not c.sticky and #c:tags() == 1) or
(c.sticky and fallback_tag == nil) then
return
else
-- If a client has multiple tags, then do not move it to fallback
elseif #c:tags() < 2 then
c:tags({fallback_tag})
end
end