mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
awful: fix screen.focus()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
936d5457a3
commit
b83052281e
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@ function P.screen.focus(i)
|
||||||
else
|
else
|
||||||
s = mouse.screen_get()
|
s = mouse.screen_get()
|
||||||
end
|
end
|
||||||
screen.focus(cycle(screen.count(), s))
|
s = cycle(screen.count(), s + i)
|
||||||
|
screen.focus(s)
|
||||||
-- Move the mouse on the screen
|
-- Move the mouse on the screen
|
||||||
local screen_coords = screen.coords_get(s)
|
local screen_coords = screen.coords_get(s)
|
||||||
mouse.coords_set(screen_coords['x'], screen_coords['y'])
|
mouse.coords_set(screen_coords['x'], screen_coords['y'])
|
||||||
|
|
Loading…
Reference in a new issue