Fix #90794 - make sure dialogs are sent to another virtual desktop

with their mainwindow.
CCMAIL: 90794-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=353949
This commit is contained in:
Luboš Luňák 2004-10-12 14:56:08 +00:00
parent 8bd7aa970a
commit 1161bd5713

View file

@ -1332,7 +1332,7 @@ void Workspace::sendClientToDesktop( Client* c, int desk, bool dont_activate )
{
bool was_on_desktop = c->isOnDesktop( desk ) || c->isOnAllDesktops();
c->setDesktop( desk );
if ( c->desktop() == desk ) // no change or desktop forced
if ( c->desktop() != desk ) // no change or desktop forced
return;
desk = c->desktop(); // Client did range checking