Match handling of PAINT_WINDOW_DISABLED.

svn path=/branches/work/kwin_composite/; revision=629154
This commit is contained in:
Luboš Luňák 2007-02-01 16:23:44 +00:00
parent b34d4ac7c4
commit 904fd1e3d0

View file

@ -166,14 +166,16 @@ void SceneXrender::paintTransformedScreen( int orig_mask )
--i )
{
Window* w = static_cast< Window* >( stacking_order[ i ] );
if( !w->isVisible())
continue;
if( region.isEmpty()) // completely clipped
continue;
int mask = orig_mask | ( w->isOpaque() ? PAINT_WINDOW_OPAQUE : PAINT_WINDOW_TRANSLUCENT );
if( !w->isVisible())
mask |= PAINT_WINDOW_DISABLED;
QRegion damage = region;
// preparation step
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
// in the 2nd pass.
if( mask & PAINT_WINDOW_TRANSLUCENT )