From 0826351a72a26440611af6361237dd78641c4155 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 7 Aug 2008 16:34:37 +0200 Subject: [PATCH] awful: check for sel.screen after sel Signed-off-by: Julien Danjou --- lib/awful.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 0ace08419..93bb1778c 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -519,9 +519,9 @@ end function client.toggletag(target, c) local sel = c or capi.client.focus_get(); -- Check that tag and client screen are identical - if sel.screen ~= target.screen then return end local toggle = false if sel then + if sel.screen ~= target.screen then return end -- Count how many tags has the client -- an only toggle tag if the client has at least one tag other than target for k, v in pairs(capi.tag.get(sel.screen)) do