awful.client.toggletag: Use tag.getscreen()

Thanks to muni for reporting this bug.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-11-19 18:56:18 +01:00
parent d13b825c36
commit 38c41a2f7a
1 changed files with 1 additions and 1 deletions

View File

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