From 51a41b9b765dbcf76ec09324f533d8c8edd46e37 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 08:51:47 +0000 Subject: all new stacked cycling code. so much sexy. add an openbox_active_window client message that lets you specify if you want the window to be raised and/or unshaded. --- scripts/defaults.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/defaults.py') diff --git a/scripts/defaults.py b/scripts/defaults.py index 922f472c..7fd2273d 100644 --- a/scripts/defaults.py +++ b/scripts/defaults.py @@ -1,4 +1,5 @@ import focus # add some default focus handling and cycling functions +import stackedcycle # functions for doing stacked 'kde-style' cycling import focusmodel # default focus models import behavior # defines default behaviors for interaction with windows import callbacks # a lib of functions that can be used as binding callbacks @@ -33,8 +34,8 @@ ob.mbind("Left", ob.MouseContext.Root, ob.MouseAction.Click, ob.kbind(["A-F4"], ob.KeyContext.All, callbacks.close) # focus bindings -ob.kbind(["A-Tab"], ob.KeyContext.All, focus.focus_next_stacked) -ob.kbind(["A-S-Tab"], ob.KeyContext.All, focus.focus_prev_stacked) +ob.kbind(["A-Tab"], ob.KeyContext.All, stackedcycle.next) +ob.kbind(["A-S-Tab"], ob.KeyContext.All, stackedcycle.previous) # desktop changing bindings ob.kbind(["C-1"], ob.KeyContext.All, lambda(d): callbacks.change_desktop(d, 0)) -- cgit v1.2.3