From 752489aac5118f554de09f925462c565ef88615c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 22 Feb 2009 17:11:47 +0000 Subject: [PATCH] Windows can't overlap desktop edges in cylinder or sphere mode. It results either in incorrect painting or in GL errors. svn path=/trunk/KDE/kdebase/workspace/; revision=930083 --- effects/cube/cube.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index be083ce022..9057761168 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -1317,7 +1317,7 @@ void CubeEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int int prev_desktop = painting_desktop -1; if( prev_desktop == 0 ) prev_desktop = effects->numberOfDesktops(); - if( w->isOnDesktop( prev_desktop ) ) + if( w->isOnDesktop( prev_desktop ) && mode == Cube ) { QRect rect = effects->clientArea( FullArea, activeScreen, prev_desktop); if( w->x()+w->width() > rect.x() + rect.width() ) @@ -1341,7 +1341,7 @@ void CubeEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int int next_desktop = painting_desktop +1; if( next_desktop > effects->numberOfDesktops() ) next_desktop = 1; - if( w->isOnDesktop( next_desktop ) ) + if( w->isOnDesktop( next_desktop ) && mode == Cube ) { QRect rect = effects->clientArea( FullArea, activeScreen, next_desktop); if( w->x() < rect.x() )