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.
icc-effect-5.26.4
Vlad Zahorodnii 2021-01-26 18:52:59 +02:00
parent ca81be6635
commit 8209cca810
1 changed files with 1 additions and 1 deletions

View File

@ -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) {
continue;
}