diff --git a/useractions.cpp b/useractions.cpp index 7fa9e9fa86..3491a64024 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -1695,7 +1695,7 @@ void Workspace::switchWindow(Direction direction) continue; } if (client->wantsTabFocus() && *i != c && - client->desktop() == d && !client->isMinimized() && (*i)->isOnCurrentActivity()) { + client->isOnDesktop(d) && !client->isMinimized() && (*i)->isOnCurrentActivity()) { // Centre of the other window QPoint other(client->pos().x() + client->geometry().width() / 2, client->pos().y() + client->geometry().height() / 2);