diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 7cc998cd79..a1c3ab5bec 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -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 diff --git a/effects/cube/cube.h b/effects/cube/cube.h index d1ca512ea5..0bc99e419e 100644 --- a/effects/cube/cube.h +++ b/effects/cube/cube.h @@ -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: