awful.layout: fix call to :isvisible()

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-07-14 19:59:29 +02:00 committed by Julien Danjou
parent 458a770fd7
commit 7a73227108
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ hooks.tags.register(function(screen, tag, action) on_arrange(screen) end)
hooks.tagged.register(function(c, tag)
if not tag.screen then return end
on_arrange(tag.screen)
if not capi.client.focus or not client.focus:isvisible() then
if not capi.client.focus or not capi.client.focus:isvisible() then
local c = client.focus.history.get(tag.screen, 0)
if c then capi.client.focus = c end
end