fix off-by-one test

This commit is contained in:
Luboš Luňák 2011-09-30 18:26:21 +02:00
parent 898052f3d5
commit e6fa2e4311

View file

@ -459,7 +459,7 @@ bool Workspace::activateNextClient(Client* c)
void Workspace::setCurrentScreen(int new_screen)
{
if (new_screen < 0 || new_screen > numScreens())
if (new_screen < 0 || new_screen >= numScreens())
return;
if (!options->focusPolicyIsReasonable())
return;