diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-24 09:25:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-24 09:25:03 +0000 |
| commit | 084d6f4e42396a5d2baf72877b5abf3ae6fef7be (patch) | |
| tree | 26e017f1eee3c248b89151897d5faa7cd3df65cf /src/openbox.hh | |
| parent | 91c7e5c378b1a639c6f5383915ed68b36b7735d4 (diff) | |
some intermediate stage. stacked focus cycling is very broken. dont try it. going to have to change how the python stuff works i think!
Diffstat (limited to 'src/openbox.hh')
| -rw-r--r-- | src/openbox.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openbox.hh b/src/openbox.hh index c47300b4..2b8e8b07 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -177,7 +177,7 @@ public: //! Returns a managed screen inline Screen *screen(int num) { assert(num >= 0); assert(num < (signed)_screens.size()); - if (num >= screenCount()) + if (num < 0 || num >= screenCount()) return NULL; return _screens[num]; } |
