fix screen switching for more than two screens
BUG: 264041 FIXED-IN: 4.9.4 (cherry picked from commit 217895fb13cf7498841a288a777f575cdd249efc)
This commit is contained in:
parent
3bad8ed12f
commit
939f04d260
1 changed files with 4 additions and 4 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue