make switchWindow FROM stickies act on current VD

it's probably the user expectation and few windows
are on all desktops

BUG: 331512
REVIEW: 123640
icc-effect-5.14.5
Thomas Lübking 2015-05-05 12:24:41 +02:00
parent c2ba765820
commit 56fce0adc7
1 changed files with 1 additions and 1 deletions

View File

@ -1682,7 +1682,7 @@ void Workspace::switchWindow(Direction direction)
Client *c = active_client;
Client *switchTo = 0;
int bestScore = 0;
int d = c->desktop();
int d = c->isOnAllDesktops() ? VirtualDesktopManager::self()->current() : c->desktop();
// Centre of the active window
QPoint curPos(c->pos().x() + c->geometry().width() / 2,
c->pos().y() + c->geometry().height() / 2);