Merge remote-tracking branch 'origin/KDE/4.8'
This commit is contained in:
commit
815a0fe681
1 changed files with 6 additions and 4 deletions
|
@ -169,12 +169,14 @@ void FadeEffect::slotWindowAdded(EffectWindow* w)
|
||||||
|
|
||||||
void FadeEffect::slotWindowClosed(EffectWindow* w)
|
void FadeEffect::slotWindowClosed(EffectWindow* w)
|
||||||
{
|
{
|
||||||
if (!fadeWindows || !isFadeWindow(w))
|
// In the cases, where we are still fading in or are not responsible, we do not fade out.
|
||||||
|
if (!fadeWindows || !isFadeWindow(w) || windows.contains(w)) {
|
||||||
return;
|
return;
|
||||||
if (!windows.contains(w))
|
}
|
||||||
windows[ w ].opacity = w->opacity();
|
windows[ w ].opacity = w->opacity();
|
||||||
if (windows[ w ].opacity == 1.0)
|
if (windows[ w ].opacity == 1.0) {
|
||||||
windows[ w ].opacity -= 0.1 / fadeOutTime;
|
windows[ w ].opacity -= 0.1 / fadeOutTime;
|
||||||
|
}
|
||||||
windows[ w ].deleted = true;
|
windows[ w ].deleted = true;
|
||||||
w->refWindow();
|
w->refWindow();
|
||||||
w->addRepaintFull();
|
w->addRepaintFull();
|
||||||
|
|
Loading…
Reference in a new issue