From 939f04d260bfcc68c6e228c7126da5275e8e3f00 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.9.4 (cherry picked from commit 217895fb13cf7498841a288a777f575cdd249efc) --- activation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activation.cpp b/activation.cpp index 298728719a..3fb32e6739 100644 --- a/activation.cpp +++ b/activation.cpp @@ -505,10 +505,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());