Only show cross cursor in desktop grid when clicking on a movable window.

CCBUG: 204571

svn path=/trunk/KDE/kdebase/workspace/; revision=1013898
This commit is contained in:
Martin Gräßlin 2009-08-21 07:03:33 +00:00
parent 693bef0023
commit 70dfff75e8

View file

@ -342,7 +342,7 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
{ {
QRect rect; QRect rect;
EffectWindow* w = windowAt( me->pos()); EffectWindow* w = windowAt( me->pos());
if( w != NULL ) if( w != NULL && (w->isMovable() || w->isMovableAcrossScreens()) )
{ // Prepare it for moving { // Prepare it for moving
XDefineCursor( display(), input, QCursor( Qt::SizeAllCursor ).handle() ); XDefineCursor( display(), input, QCursor( Qt::SizeAllCursor ).handle() );
windowMoveDiff = w->pos() - unscalePos( me->pos(), NULL ); windowMoveDiff = w->pos() - unscalePos( me->pos(), NULL );