diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 57d19d226e..a87639e8ff 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -862,7 +862,7 @@ EffectWindow* DesktopGridEffect::windowAt(QPoint pos) const } } else { foreach (EffectWindow * w, windows) { - if (w->isOnDesktop(desktop) && !w->isMinimized() && w->geometry().contains(pos)) + if (w->isOnDesktop(desktop) && w->isOnCurrentActivity() && !w->isMinimized() && w->geometry().contains(pos)) return w; } }