From 106883eedf32ac44afb8ca93c7004a523d493d2f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 09:03:48 +0000 Subject: [PATCH] force a binding with a modifier --- scripts/stackedcycle.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) ########################################################################### -- 2.45.2