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 committed by Uli Schlachter
parent 94cbc200ed
commit ed93b497b6
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,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