Forward port rev 1169042: Do not drop desktop on non-existing desktops in the desktop grid.

CCBUG: 248817

svn path=/trunk/KDE/kdebase/workspace/; revision=1169043
This commit is contained in:
Martin Gräßlin 2010-08-28 08:16:14 +00:00
parent 47fce840b0
commit 0c381d3e59

View file

@ -586,7 +586,7 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
}
if( d != highlightedDesktop ) // Highlight desktop
{
if ( (me->buttons() & Qt::LeftButton) && !wasWindowMove )
if ( (me->buttons() & Qt::LeftButton) && !wasWindowMove && d <= effects->numberOfDesktops() )
{
EffectWindowList windows = effects->stackingOrder();
EffectWindowList stack;