parent
e8c7e573cb
commit
995361449a
|
@ -559,7 +559,7 @@ function client.movetoscreen(c, s)
|
||||||
if sel then
|
if sel then
|
||||||
local sc = capi.screen.count()
|
local sc = capi.screen.count()
|
||||||
if not s then
|
if not s then
|
||||||
s = sel.screen + 1
|
s = sel.screen.index + 1
|
||||||
end
|
end
|
||||||
if type(s) == "number" and s > sc then s = 1 elseif s < 1 then s = sc end
|
if type(s) == "number" and s > sc then s = 1 elseif s < 1 then s = sc end
|
||||||
s = get_screen(s)
|
s = get_screen(s)
|
||||||
|
|
|
@ -143,7 +143,7 @@ end
|
||||||
-- @param i Value to add to the current focused screen index. 1 will focus next
|
-- @param i Value to add to the current focused screen index. 1 will focus next
|
||||||
-- screen, -1 would focus the previous one.
|
-- screen, -1 would focus the previous one.
|
||||||
function screen.focus_relative(i)
|
function screen.focus_relative(i)
|
||||||
return screen.focus(util.cycle(capi.screen.count(), screen.focused() + i))
|
return screen.focus(util.cycle(capi.screen.count(), screen.focused().index + i))
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get or set the screen padding.
|
--- Get or set the screen padding.
|
||||||
|
|
Loading…
Reference in New Issue