Don't dim unmanaged windows.
BUG: 183046 svn path=/trunk/KDE/kdebase/workspace/; revision=936926
This commit is contained in:
parent
3c449d81cc
commit
371c6804f4
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ void DimScreenEffect::postPaintScreen()
|
||||||
|
|
||||||
void DimScreenEffect::paintWindow( EffectWindow *w, int mask, QRegion region, WindowPaintData &data )
|
void DimScreenEffect::paintWindow( EffectWindow *w, int mask, QRegion region, WindowPaintData &data )
|
||||||
{
|
{
|
||||||
if( mActivated && ( w != window ) &&
|
if( mActivated && ( w != window ) && w->isManaged() )
|
||||||
!( w->isComboBox() || w->isDropdownMenu() || w->isTooltip() ) )
|
|
||||||
{
|
{
|
||||||
data.brightness *= (1.0 - 0.33 * timeline.value() );
|
data.brightness *= (1.0 - 0.33 * timeline.value() );
|
||||||
data.saturation *= (1.0 - 0.33 * timeline.value() );
|
data.saturation *= (1.0 - 0.33 * timeline.value() );
|
||||||
|
|
Loading…
Reference in a new issue