Match handling of PAINT_WINDOW_DISABLED.
svn path=/branches/work/kwin_composite/; revision=629154
This commit is contained in:
parent
b34d4ac7c4
commit
904fd1e3d0
1 changed files with 4 additions and 2 deletions
|
@ -166,14 +166,16 @@ void SceneXrender::paintTransformedScreen( int orig_mask )
|
||||||
--i )
|
--i )
|
||||||
{
|
{
|
||||||
Window* w = static_cast< Window* >( stacking_order[ i ] );
|
Window* w = static_cast< Window* >( stacking_order[ i ] );
|
||||||
if( !w->isVisible())
|
|
||||||
continue;
|
|
||||||
if( region.isEmpty()) // completely clipped
|
if( region.isEmpty()) // completely clipped
|
||||||
continue;
|
continue;
|
||||||
int mask = orig_mask | ( w->isOpaque() ? PAINT_WINDOW_OPAQUE : PAINT_WINDOW_TRANSLUCENT );
|
int mask = orig_mask | ( w->isOpaque() ? PAINT_WINDOW_OPAQUE : PAINT_WINDOW_TRANSLUCENT );
|
||||||
|
if( !w->isVisible())
|
||||||
|
mask |= PAINT_WINDOW_DISABLED;
|
||||||
QRegion damage = region;
|
QRegion damage = region;
|
||||||
// preparation step
|
// preparation step
|
||||||
effects->prePaintWindow( effectWindow( w ), &mask, &damage, time_diff );
|
effects->prePaintWindow( effectWindow( w ), &mask, &damage, time_diff );
|
||||||
|
if( mask & PAINT_WINDOW_DISABLED )
|
||||||
|
continue;
|
||||||
// If the window is transparent, the transparent part will be done
|
// If the window is transparent, the transparent part will be done
|
||||||
// in the 2nd pass.
|
// in the 2nd pass.
|
||||||
if( mask & PAINT_WINDOW_TRANSLUCENT )
|
if( mask & PAINT_WINDOW_TRANSLUCENT )
|
||||||
|
|
Loading…
Reference in a new issue