From e6fa2e4311b9844939572091861c8d29b1227f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 30 Sep 2011 18:26:21 +0200 Subject: [PATCH] fix off-by-one test --- activation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;