awful.screen.focus_bydirecttion: fix setting screen focus (#1635)

This was broken in 9cb60b8 in PR #1597 (from myself).

focus() is not defined on the screen instance as method
but on the screen module as function.

Signed-off-by: Christoph Mertz <chris@nimel.de>

Fix #1644
This commit is contained in:
Christoph Mertz 2017-03-09 06:07:35 +01:00 committed by Emmanuel Lepage Vallée
parent b28dba3165
commit 2d91d49b30
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ function screen.focus_bydirection(dir, _screen)
local target = sel:get_next_in_direction(dir)
if target then
return target:focus()
return screen.focus(target)
end
end