From b83052281eaf538d23669a919973a1d43f3497c6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 20 Jun 2008 11:13:02 +0200 Subject: [PATCH] awful: fix screen.focus() Signed-off-by: Julien Danjou --- lib/awful.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful.lua b/lib/awful.lua index eaa3674e3..e6ad33271 100644 --- a/lib/awful.lua +++ b/lib/awful.lua @@ -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'])