awful: check for sel.screen after sel

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-07 16:34:37 +02:00
parent a7c7ab2eb0
commit 0826351a72
1 changed files with 1 additions and 1 deletions

View File

@ -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