From 0c381d3e59dd6b5b1119fe2508adae266dacd809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 28 Aug 2010 08:16:14 +0000 Subject: [PATCH] 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 --- effects/desktopgrid/desktopgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 7f634a7d4c..335599f754 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -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;