all repos — openbox @ 104c1a164b1e4e881e141d14263895401779d453

openbox fork - make it a bit more like ryudo

wrap around right for focus cycling
Dana Jansens danakj@orodu.net
commit

104c1a164b1e4e881e141d14263895401779d453

parent

d4e4e25e2841d3aefc5dc13bab551d77b63590ea

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M scripts/focus.pyscripts/focus.py

@@ -59,10 +59,11 @@ r.reverse()

for i in r: if found: target = i + found = 2 break elif screen.client(i).window() == client_win: found = 1 - if not found: # wraparound + if found == 1: # wraparound if forward: target = 0 else: target = count - 1

@@ -80,7 +81,7 @@ if forward:

t += num if t >= count: t -= count else: - t -= 1 + t -= num if t < 0: t += count if t == target: return # nothing to focus