cycling by any number of windows

This commit is contained in:
Dana Jansens 2003-01-23 09:03:06 +00:00
parent 707f70682a
commit 18ab245307

View file

@ -71,11 +71,11 @@ def focus_next(data, num=1, forward=1):
screen.raiseWindow(client)
return
if forward:
t += 1
if t == count: t = 0
t += num
if t >= count: t -= count
else:
t -= 1
if t < 0: t = count - 1
if t < 0: t += count
if t == target: return # nothing to focus
def focus_prev(data, num=1):