]> Dogcows Code - chaz/openbox/commitdiff
force a binding with a modifier
authorDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 09:03:48 +0000 (09:03 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 09:03:48 +0000 (09:03 +0000)
scripts/stackedcycle.py

index 791a93a2f615cd3e8fbc88b90f6a2df394ddd5a2..4c549d66045c4b6c7bcbe6de7a2271ab4684fc40 100644 (file)
@@ -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)
 
 ###########################################################################
This page took 0.025802 seconds and 4 git commands to generate.