tag.delete: Do not reset client tag when unnecessary

This commit is contained in:
Emmanuel Lepage Vallee 2014-10-13 21:36:11 -04:00
parent d76e20bbce
commit 3ff24467b9
1 changed files with 2 additions and 1 deletions

View File

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