diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-19 21:03:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-19 21:03:17 +0000 |
| commit | 8ba0586bcbdc7fe9648f1063812126d71a041670 (patch) | |
| tree | 0115aa2446f8dbf4d2ef757c0d8219928528f044 /scripts | |
| parent | feaf3ac4e5847d27e3747b09e7443915afa97b0b (diff) | |
use the new config system.. a bit..
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cycle.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/cycle.py b/scripts/cycle.py index 5a518652..f77f3d8a 100644 --- a/scripts/cycle.py +++ b/scripts/cycle.py @@ -1,4 +1,4 @@ -import ob, otk +import ob, otk, config class _Cycle: """ This is a basic cycling class for anything, from xOr's stackedcycle.py, @@ -298,7 +298,8 @@ class _CycleWindows(_Cycle): if not client.normal(): return 0 if not (client.canFocus() or client.focusNotify()): return 0 - if focus.AVOID_SKIP_TASKBAR and client.skipTaskbar(): return 0 + if config.get('focus', 'avoid_skip_taskbar') and client.skipTaskbar(): + return 0 if client.iconic(): if self.INCLUDE_ICONS: @@ -390,7 +391,8 @@ class _CycleWindowsLinear(_CycleWindows): if not client.normal(): return 0 if not (client.canFocus() or client.focusNotify()): return 0 - if focus.AVOID_SKIP_TASKBAR and client.skipTaskbar(): return 0 + if config.get('focus', 'avoid_skip_taskbar') and client.skipTaskbar(): + return 0 if client.iconic(): return 0 if self.INCLUDE_OMNIPRESENT and desk == 0xffffffff: return 1 |
