all repos — openbox @ 106883eedf32ac44afb8ca93c7004a523d493d2f

openbox fork - make it a bit more like ryudo

force a binding with a modifier
Dana Jansens danakj@orodu.net
commit

106883eedf32ac44afb8ca93c7004a523d493d2f

parent

741aecf842563284f4e756bf3d935d551aaad8fa

1 files changed, 6 insertions(+), 0 deletions(-)

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

@@ -26,10 +26,16 @@ ###########################################################################

def next(data): """Focus the next window.""" + if not data.state: + raise RuntimeError("stackedcycle.next must be bound to a key" + + "combination with at least one modifier") _o.cycle(data, 1) def previous(data): """Focus the previous window.""" + if not data.state: + raise RuntimeError("stackedcycle.previous must be bound to a key" + + "combination with at least one modifier") _o.cycle(data, 0) ###########################################################################