summaryrefslogtreecommitdiff
path: root/src/openbox.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-24 09:25:03 +0000
committerDana Jansens <danakj@orodu.net>2003-01-24 09:25:03 +0000
commit084d6f4e42396a5d2baf72877b5abf3ae6fef7be (patch)
tree26e017f1eee3c248b89151897d5faa7cd3df65cf /src/openbox.hh
parent91c7e5c378b1a639c6f5383915ed68b36b7735d4 (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.hh2
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];
}