From 38c41a2f7aa4cc2ea30e48e790a0cc50c619c83b Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 19 Nov 2012 18:56:18 +0100 Subject: [PATCH] awful.client.toggletag: Use tag.getscreen() Thanks to muni for reporting this bug. Signed-off-by: Uli Schlachter --- lib/awful/client.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 012dea8f8..469dbfe3a 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -467,7 +467,7 @@ end function client.toggletag(target, c) local sel = c or capi.client.focus -- Check that tag and client screen are identical - if sel and sel.screen == target.screen then + if sel and sel.screen == tag.getscreen(target) then local tags = sel:tags() local index = nil; for i, v in ipairs(tags) do