Forward port rev 1183361: Do not allow to move desktop windows in desktop grid.

CCBUG: 253481

svn path=/trunk/KDE/kdebase/workspace/; revision=1183362
This commit is contained in:
Martin Gräßlin 2010-10-07 07:51:41 +00:00
parent 9b10dc7974
commit d24f153bc5

View file

@ -640,7 +640,7 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
EffectWindow* w = isDesktop ? NULL : windowAt( me->pos());
if ( w != NULL )
isDesktop = w->isDesktop();
if( w != NULL && ( w->isMovable() || w->isMovableAcrossScreens() || isUsingPresentWindows() ))
if( w != NULL && !w->isDesktop() && ( w->isMovable() || w->isMovableAcrossScreens() || isUsingPresentWindows() ))
{ // Prepare it for moving
windowMoveDiff = w->pos() - unscalePos( me->pos(), NULL );
windowMove = w;