diff --git a/src/workspace.cpp b/src/workspace.cpp index 67d7c27106..6b2dea4593 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -2536,7 +2536,7 @@ QPoint Workspace::adjustClientPosition(AbstractClient* c, QPoint pos, bool unres continue; // is minimized if (!(*l)->isShown(false)) continue; - if (!((*l)->isOnDesktop(c->desktop()) || c->isOnDesktop((*l)->desktop()))) + if (!(*l)->isOnCurrentDesktop()) continue; // wrong virtual desktop if (!(*l)->isOnCurrentActivity()) continue; // wrong activity