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
parent
ca81be6635
commit
8209cca810
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue