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:
parent
b28dba3165
commit
2d91d49b30
|
@ -157,7 +157,7 @@ function screen.focus_bydirection(dir, _screen)
|
||||||
local target = sel:get_next_in_direction(dir)
|
local target = sel:get_next_in_direction(dir)
|
||||||
|
|
||||||
if target then
|
if target then
|
||||||
return target:focus()
|
return screen.focus(target)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue