fix passive startup feedback
BUG: 260727 FIXED-IN: 4.11 REVIEW: 111634
This commit is contained in:
parent
10e7ef75ba
commit
3aa2e22b32
1 changed files with 4 additions and 17 deletions
|
@ -164,10 +164,6 @@ void StartupFeedbackEffect::prePaintScreen(ScreenPrePaintData& data, int time)
|
|||
default:
|
||||
break; // nothing
|
||||
}
|
||||
data.paint.unite(m_dirtyRect);
|
||||
m_dirtyRect = QRect();
|
||||
m_currentGeometry = feedbackRect();
|
||||
data.paint.unite(m_currentGeometry);
|
||||
}
|
||||
effects->prePaintScreen(data, time);
|
||||
}
|
||||
|
@ -243,18 +239,9 @@ void StartupFeedbackEffect::paintScreen(int mask, QRegion region, ScreenPaintDat
|
|||
void StartupFeedbackEffect::postPaintScreen()
|
||||
{
|
||||
if (m_active) {
|
||||
switch(m_type) {
|
||||
case BouncingFeedback: // fall through
|
||||
case BlinkingFeedback:
|
||||
// repaint the icon
|
||||
m_dirtyRect = m_currentGeometry;
|
||||
effects->addRepaint(m_dirtyRect);
|
||||
break;
|
||||
case PassiveFeedback: // fall through
|
||||
default:
|
||||
// no need to repaint - no change
|
||||
break;
|
||||
}
|
||||
m_dirtyRect = m_currentGeometry; // ensure the now dirty region is cleaned on the next pass
|
||||
if (m_type == BlinkingFeedback || m_type == BouncingFeedback)
|
||||
effects->addRepaint(m_dirtyRect); // we also have to trigger a repaint
|
||||
}
|
||||
effects->postPaintScreen();
|
||||
}
|
||||
|
@ -324,7 +311,7 @@ void StartupFeedbackEffect::start(const QString& icon)
|
|||
iconPixmap = SmallIcon("system-run");
|
||||
prepareTextures(iconPixmap);
|
||||
m_dirtyRect = m_currentGeometry = feedbackRect();
|
||||
effects->addRepaintFull();
|
||||
effects->addRepaint(m_dirtyRect);
|
||||
}
|
||||
|
||||
void StartupFeedbackEffect::stop()
|
||||
|
|
Loading…
Reference in a new issue