make switchWindow FROM stickies act on current VD
it's probably the user expectation and few windows are on all desktops BUG: 331512 REVIEW: 123640icc-effect-5.14.5
parent
c2ba765820
commit
56fce0adc7
|
@ -1682,7 +1682,7 @@ void Workspace::switchWindow(Direction direction)
|
||||||
Client *c = active_client;
|
Client *c = active_client;
|
||||||
Client *switchTo = 0;
|
Client *switchTo = 0;
|
||||||
int bestScore = 0;
|
int bestScore = 0;
|
||||||
int d = c->desktop();
|
int d = c->isOnAllDesktops() ? VirtualDesktopManager::self()->current() : c->desktop();
|
||||||
// Centre of the active window
|
// Centre of the active window
|
||||||
QPoint curPos(c->pos().x() + c->geometry().width() / 2,
|
QPoint curPos(c->pos().x() + c->geometry().width() / 2,
|
||||||
c->pos().y() + c->geometry().height() / 2);
|
c->pos().y() + c->geometry().height() / 2);
|
||||||
|
|
Loading…
Reference in New Issue