Changeset View
Changeset View
Standalone View
Standalone View
useractions.cpp
Show First 20 Lines • Show All 1531 Lines • ▼ Show 20 Line(s) | 1506 | { | |||
---|---|---|---|---|---|
1532 | } | 1532 | } | ||
1533 | } | 1533 | } | ||
1534 | 1534 | | |||
1535 | bool Workspace::switchWindow(AbstractClient *c, Direction direction, QPoint curPos, int d) | 1535 | bool Workspace::switchWindow(AbstractClient *c, Direction direction, QPoint curPos, int d) | ||
1536 | { | 1536 | { | ||
1537 | AbstractClient *switchTo = nullptr; | 1537 | AbstractClient *switchTo = nullptr; | ||
1538 | int bestScore = 0; | 1538 | int bestScore = 0; | ||
1539 | 1539 | | |||
1540 | ToplevelList clist = stackingOrder(); | 1540 | QList<Toplevel *> clist = stackingOrder(); | ||
1541 | for (auto i = clist.rbegin(); i != clist.rend(); ++i) { | 1541 | for (auto i = clist.rbegin(); i != clist.rend(); ++i) { | ||
1542 | auto client = qobject_cast<AbstractClient*>(*i); | 1542 | auto client = qobject_cast<AbstractClient*>(*i); | ||
1543 | if (!client) { | 1543 | if (!client) { | ||
1544 | continue; | 1544 | continue; | ||
1545 | } | 1545 | } | ||
1546 | if (client->wantsTabFocus() && *i != c && | 1546 | if (client->wantsTabFocus() && *i != c && | ||
1547 | client->isOnDesktop(d) && !client->isMinimized() && (*i)->isOnCurrentActivity()) { | 1547 | client->isOnDesktop(d) && !client->isMinimized() && (*i)->isOnCurrentActivity()) { | ||
1548 | // Centre of the other window | 1548 | // Centre of the other window | ||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |