correctly test whether client is on a VD

when considering if for a directional
focus switch

BUG: 331512
REVIEW: 122292
FIXED-IN: 5.3
This commit is contained in:
Thomas Lübking 2015-01-28 16:56:19 +01:00
parent 9f3656c917
commit fdcb0e6180

View file

@ -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);