Disable blur effect when there is an active fullscreen effect. This makes cube & co. work if blur is enabled. It's a hack and the real reason why the problem occurs should be searched for. (I totally forgot to commit this patch)
BUG: 167928 svn path=/trunk/KDE/kdebase/workspace/; revision=885931
This commit is contained in:
parent
7929582374
commit
8c09fbc62a
1 changed files with 4 additions and 2 deletions
|
@ -184,7 +184,8 @@ void BlurEffect::paintScreen( int mask, QRegion region, ScreenPaintData& data )
|
||||||
// way of knowing here whether there will be any translucent windows or
|
// way of knowing here whether there will be any translucent windows or
|
||||||
// not. If we'd know that there's no translucent windows then we could
|
// not. If we'd know that there's no translucent windows then we could
|
||||||
// render straight onto screen, saving some time.
|
// render straight onto screen, saving some time.
|
||||||
if( mValid /*&& mTransparentWindows*/ )
|
// HACK disable blur when there is a fullscreen effects. Needed for e.g. cube to work
|
||||||
|
if( mValid && !effects->activeFullScreenEffect() /*&& mTransparentWindows*/ )
|
||||||
{
|
{
|
||||||
// rendering everything onto render target
|
// rendering everything onto render target
|
||||||
effects->pushRenderTarget(mSceneTarget);
|
effects->pushRenderTarget(mSceneTarget);
|
||||||
|
@ -241,7 +242,8 @@ void BlurEffect::paintScreen( int mask, QRegion region, ScreenPaintData& data )
|
||||||
|
|
||||||
void BlurEffect::drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data )
|
void BlurEffect::drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data )
|
||||||
{
|
{
|
||||||
if( mValid /*&& mTransparentWindows*/ )
|
// HACK disable blur when there is a fullscreen effects. Needed for e.g. cube to work
|
||||||
|
if( mValid && !effects->activeFullScreenEffect() /*&& mTransparentWindows*/ )
|
||||||
{
|
{
|
||||||
if( mask & PAINT_WINDOW_TRANSLUCENT &&
|
if( mask & PAINT_WINDOW_TRANSLUCENT &&
|
||||||
(data.opacity != 1.0 || data.contents_opacity != 1.0 || data.decoration_opacity != 1.0 ))
|
(data.opacity != 1.0 || data.contents_opacity != 1.0 || data.decoration_opacity != 1.0 ))
|
||||||
|
|
Loading…
Reference in a new issue