From d24f153bc50fca6de141b5796d063d3e3191b987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 7 Oct 2010 07:51:41 +0000 Subject: [PATCH] Forward port rev 1183361: Do not allow to move desktop windows in desktop grid. CCBUG: 253481 svn path=/trunk/KDE/kdebase/workspace/; revision=1183362 --- 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 f9967f2116..1866b1f4da 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -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;