awful: fix screen.focus()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-20 11:13:02 +02:00
parent 936d5457a3
commit b83052281e

View file

@ -146,7 +146,8 @@ function P.screen.focus(i)
else
s = mouse.screen_get()
end
screen.focus(cycle(screen.count(), s))
s = cycle(screen.count(), s + i)
screen.focus(s)
-- Move the mouse on the screen
local screen_coords = screen.coords_get(s)
mouse.coords_set(screen_coords['x'], screen_coords['y'])