From 5211448bd84ed800e02e50a5604f011936b2034b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Aug 2008 17:35:00 +0200 Subject: [PATCH] awful: switch screen focus even, don't care for windows Signed-off-by: Julien Danjou --- lib/awful.lua.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index b0606c62..4b239dd8 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -317,14 +317,7 @@ end --- Give the focus to a screen, and move pointer. -- @param Screen number. function screen.focus(i) - local sel = capi.client.focus - local s - if sel then - s = sel.screen - else - s = capi.mouse.screen - end - s = cycle(capi.screen.count(), s + i) + local s = cycle(capi.screen.count(), capi.mouse.screen + i) local c = client.focus.history.get(s, 0) if c then capi.client.focus = c end -- Move the mouse on the screen