summaryrefslogtreecommitdiff
path: root/scripts/stackedcycle.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stackedcycle.py')
-rw-r--r--scripts/stackedcycle.py6
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)
###########################################################################