From 904fd1e3d0c8a3987c422cd745dbbbb9822714df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 1 Feb 2007 16:23:44 +0000 Subject: [PATCH] Match handling of PAINT_WINDOW_DISABLED. svn path=/branches/work/kwin_composite/; revision=629154 --- scene_xrender.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scene_xrender.cpp b/scene_xrender.cpp index 42a4c1768f..427e3e9cac 100644 --- a/scene_xrender.cpp +++ b/scene_xrender.cpp @@ -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 )