Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 763fbf5f authored by Martin Flöser's avatar Martin Flöser

Make Workspace::switchWindow operate on AbstractClient

Summary:
By using AbstractClient instead of Client the method works also for
Wayland windows.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D6275
parent 92207be9
......@@ -1597,12 +1597,12 @@ void Workspace::switchWindow(Direction direction)
bool Workspace::switchWindow(AbstractClient *c, Direction direction, QPoint curPos, int d)
{
Client *switchTo = nullptr;
AbstractClient *switchTo = nullptr;
int bestScore = 0;
ToplevelList clist = stackingOrder();
for (ToplevelList::Iterator i = clist.begin(); i != clist.end(); ++i) {
Client *client = qobject_cast<Client*>(*i);
auto client = qobject_cast<AbstractClient*>(*i);
if (!client) {
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment