diff options
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]; } |
