fix off-by-one test
This commit is contained in:
parent
898052f3d5
commit
e6fa2e4311
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue