Dim only normal windows and dialogs (and optionally docks), not e.g. menus or desktop
(not sure about desktop though). svn path=/trunk/KDE/kdebase/workspace/; revision=740917
This commit is contained in:
parent
896dcc9a9c
commit
e78470b8b2
1 changed files with 4 additions and 9 deletions
|
@ -31,19 +31,14 @@ DimInactiveEffect::DimInactiveEffect()
|
|||
void DimInactiveEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data )
|
||||
{
|
||||
bool dim = false;
|
||||
if( active == NULL )
|
||||
{
|
||||
if( !w->isDock() || dim_panels )
|
||||
dim = true;
|
||||
else
|
||||
dim = false;
|
||||
}
|
||||
else if( dim_by_group && active->group() == w->group())
|
||||
if( active && dim_by_group && active->group() == w->group())
|
||||
dim = false;
|
||||
else if( !dim_by_group && active == w )
|
||||
else if( active && !dim_by_group && active == w )
|
||||
dim = false;
|
||||
else if( w->isDock())
|
||||
dim = dim_panels;
|
||||
else if( !w->isNormalWindow() && !w->isDialog())
|
||||
dim = false;
|
||||
else
|
||||
dim = true;
|
||||
if( dim )
|
||||
|
|
Loading…
Reference in a new issue