Don't use the gl lists when a new window is added. This prevents the added window becoming black.

svn path=/trunk/KDE/kdebase/workspace/; revision=941274
This commit is contained in:
Martin Gräßlin 2009-03-19 10:22:04 +00:00
parent 141f166c56
commit f232a830aa
2 changed files with 9 additions and 0 deletions

View file

@ -2068,4 +2068,12 @@ void CubeEffect::tabBoxClosed()
}
}
void CubeEffect::windowAdded( EffectWindow* )
{
// when there is a new window we have to paint it once without using GL List
// to prevent that the window is black
if( activated )
useList = false;
}
} // namespace

View file

@ -51,6 +51,7 @@ class CubeEffect
virtual void tabBoxAdded( int mode );
virtual void tabBoxUpdated();
virtual void tabBoxClosed();
virtual void windowAdded( EffectWindow* );
static bool supported();
private slots: