From a6931c774f4a862dcd21fc18d7b4594853d9ea7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 23 Nov 2012 02:15:58 +0100 Subject: [PATCH] fix screen switching for more than two screens BUG: 264041 FIXED-IN: 4.10 --- activation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activation.cpp b/activation.cpp index ed2632da2e..a3c050cd5f 100644 --- a/activation.cpp +++ b/activation.cpp @@ -517,10 +517,10 @@ void Workspace::setCurrentScreen(int new_screen) Client* ci = focus_chain[ currentDesktop()].at(i); if (!ci->isShown(false) || !ci->isOnCurrentDesktop() || !ci->isOnCurrentActivity()) continue; - if (!ci->screen() == new_screen) - continue; - get_focus = ci; - break; + if (ci->screen() == new_screen) { + get_focus = ci; + break; + } } if (get_focus == NULL) get_focus = findDesktop(true, currentDesktop());