tag.delete: Do not reset client tag when unnecessary
This commit is contained in:
parent
94cbc200ed
commit
ed93b497b6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue