Forward port rev 1169323: Allow moving of "unmovable" windows if present windows mode is used in desktop grid.

Allows to move a window with a fixed position to another desktop. This is only
available in present windows mode as in normal mode each mouse movement results
in a window movement and therefore not possible.
CCBUG: 249337

svn path=/trunk/KDE/kdebase/workspace/; revision=1169324
This commit is contained in:
Martin Gräßlin 2010-08-29 05:46:29 +00:00
parent 3ba096c34e
commit d0186c4a66

View file

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