From 084d6f4e42396a5d2baf72877b5abf3ae6fef7be Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 24 Jan 2003 09:25:03 +0000 Subject: some intermediate stage. stacked focus cycling is very broken. dont try it. going to have to change how the python stuff works i think! --- src/openbox.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openbox.hh') 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]; } -- cgit v1.2.3