From 3ff24467b9c5067cf38e40db2b517e91588244fa Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 13 Oct 2014 21:36:11 -0400 Subject: [PATCH] tag.delete: Do not reset client tag when unnecessary --- lib/awful/tag.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 58b0a344..68898e13 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -147,7 +147,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