awful: switch screen focus even, don't care for windows
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a528956253
commit
5211448bd8
|
@ -317,14 +317,7 @@ end
|
||||||
--- Give the focus to a screen, and move pointer.
|
--- Give the focus to a screen, and move pointer.
|
||||||
-- @param Screen number.
|
-- @param Screen number.
|
||||||
function screen.focus(i)
|
function screen.focus(i)
|
||||||
local sel = capi.client.focus
|
local s = cycle(capi.screen.count(), capi.mouse.screen + i)
|
||||||
local s
|
|
||||||
if sel then
|
|
||||||
s = sel.screen
|
|
||||||
else
|
|
||||||
s = capi.mouse.screen
|
|
||||||
end
|
|
||||||
s = cycle(capi.screen.count(), s + i)
|
|
||||||
local c = client.focus.history.get(s, 0)
|
local c = client.focus.history.get(s, 0)
|
||||||
if c then capi.client.focus = c end
|
if c then capi.client.focus = c end
|
||||||
-- Move the mouse on the screen
|
-- Move the mouse on the screen
|
||||||
|
|
Loading…
Reference in New Issue