From ed93b497b66f99de07f51b7410f4e34eeb4a5c74 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 103732d63..d7119013a 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -167,7 +167,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