[awful] Move the mouse when switching screen focus

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Lucas de Vries 2008-05-21 16:59:39 +02:00 committed by Julien Danjou
parent a1ba2b8df5
commit 97525dc0a6
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,6 @@ function client_swap(i)
end
end
-- Focus a client relative to current focused client
function screen_focus(i)
local sel = client.focus_get()
local s
@ -86,6 +85,9 @@ function screen_focus(i)
s = 1
end
awesome.screen_focus(s)
-- Move the mouse on the screen
local screen_coords = awesome.screen_coords_get(s)
mouse.coords_set(screen_coords['x'], screen_coords['y'])
end
-- Return a table with all visible tags