From 1b44fae3b2ffbc647ae13b64a585e5e3cbb16309 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 3 Sep 2008 19:30:25 +0200 Subject: [PATCH] awful: does not allow a window to have no tag Signed-off-by: Julien Danjou --- lib/awful.lua.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 6c8086b8..c15a55c7 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -580,6 +580,8 @@ function client.toggletag(target, c) if sel and sel.screen == target.screen then local tags = sel:tags() if tags[target] then + -- If it's the only tag for the window, stop. + if #tags == 1 then return end tags[tags[target]] = nil else tags[target] = target