effects/desktopgrid: only swap windows on current activity

In the desktop grid effect, dragging an empty area of a desktop to
another desktop swaps all windows on the two desktops. This change makes
sure that this matches only windows in the current activity.

BUG: 386769
FIXED-IN: 5.24.5
This commit is contained in:
Kishore Gopalakrishnan 2022-04-11 20:57:32 +00:00 committed by Nate Graham
parent 1d6aee85e2
commit 1e0b0c881e

View file

@ -617,7 +617,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent *e)
end = windows.constEnd();
it != end; ++it) {
EffectWindow *w = const_cast<EffectWindow *>(*it); // we're not really touching it here but below
if (w->isOnAllDesktops()) {
if (w->isOnAllDesktops() || !w->isOnCurrentActivity()) {
continue;
}
if (w->isOnDesktop(highlightedDesktop)) {