From 92460322ab286f3146a6d9da94ddcf8f989af20f Mon Sep 17 00:00:00 2001 From: Rohan Ramdas Prabhu Date: Tue, 25 May 2010 21:40:14 +0000 Subject: [PATCH] Fixed a bug for KWin reported on http://bugs.kde.org with the bug no. 226423 BUG: 226423 CCMAIL: l.lunak@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=1130648 --- geometry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 12ac72fc8d..87fca7255e 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -401,8 +401,9 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos, bool unrestricted QList::ConstIterator l; for (l = clients.constBegin();l != clients.constEnd();++l ) { - if ((*l)->isOnDesktop(c->desktop()) && - !(*l)->isMinimized() + if ((((*l)->isOnDesktop(c->desktop()) && !(*l)->isMinimized()) + || (c->isOnDesktop(NET::OnAllDesktops) && (*l)->isOnDesktop(Workspace::currentDesktop()) + && !(*l)->isMinimized())) && (!(*l)->clientGroup() || (*l) == (*l)->clientGroup()->visible()) && (*l) != c ) {