diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-04 09:03:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-04 09:03:48 +0000 |
| commit | 106883eedf32ac44afb8ca93c7004a523d493d2f (patch) | |
| tree | 98b94140294ff789da70583f1ff40765a6e5c62d /scripts/stackedcycle.py | |
| parent | 741aecf842563284f4e756bf3d935d551aaad8fa (diff) | |
force a binding with a modifier
Diffstat (limited to 'scripts/stackedcycle.py')
| -rw-r--r-- | scripts/stackedcycle.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 791a93a2..4c549d66 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -26,10 +26,16 @@ activate_while_cycling = 1 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) ########################################################################### |
