Commit 5bfa461f authored by Thomas Lübking's avatar Thomas Lübking
Browse files

fix screen switching for more than two screens

BUG: 264041
FIXED-IN: 4.9.4
(cherry picked from commit 217895fb)
parent ebdd6189
...@@ -505,10 +505,10 @@ void Workspace::setCurrentScreen(int new_screen) ...@@ -505,10 +505,10 @@ void Workspace::setCurrentScreen(int new_screen)
Client* ci = focus_chain[ currentDesktop()].at(i); Client* ci = focus_chain[ currentDesktop()].at(i);
if (!ci->isShown(false) || !ci->isOnCurrentDesktop() || !ci->isOnCurrentActivity()) if (!ci->isShown(false) || !ci->isOnCurrentDesktop() || !ci->isOnCurrentActivity())
continue; continue;
if (!ci->screen() == new_screen) if (ci->screen() == new_screen) {
continue; get_focus = ci;
get_focus = ci; break;
break; }
} }
if (get_focus == NULL) if (get_focus == NULL)
get_focus = findDesktop(true, currentDesktop()); get_focus = findDesktop(true, currentDesktop());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment