diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 498e543de3..6e3c372033 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -560,6 +560,9 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e) } } else if ((me->buttons() == Qt::MidButton || me->buttons() == Qt::RightButton) && windowMove == NULL) { EffectWindow* w = windowAt(me->pos()); + if (w && w->isDesktop()) { + w = nullptr; + } if (w != NULL) { int desktop = 0; if (w->isOnAllDesktops()) {