diff --git a/activation.cpp b/activation.cpp index 911e9e65c8..b50a3253f4 100644 --- a/activation.cpp +++ b/activation.cpp @@ -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;