Commit 8209cca8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Fix (mouse precedence) focus policies on desktop switch

If user has switched between virtual desktops, only X11 windows will be
taken into account when kwin decides what window has to be activated on
the new desktop.

With this change, Wayland clients will be considered too.
parent ca81be66
......@@ -1020,7 +1020,7 @@ AbstractClient *Workspace::findClientToActivateOnDesktop(uint desktop)
if (options->isNextFocusPrefersMouse()) {
auto it = stackingOrder().constEnd();
while (it != stackingOrder().constBegin()) {
X11Client *client = qobject_cast<X11Client *>(*(--it));
AbstractClient *client = qobject_cast<AbstractClient *>(*(--it));
if (!client) {
Supports Markdown
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