[scene-xrender] Trigger a full decoration repaint when sizes are dirty

When the pixmaps are re-created we should ensure that they are filled
with proper content.

BUG: 342980
REVIEW: 122148
This commit is contained in:
Martin Gräßlin 2015-01-19 15:28:17 +01:00
parent 2910645df0
commit 198ce47fec

View file

@ -1300,13 +1300,14 @@ SceneXRenderDecorationRenderer::~SceneXRenderDecorationRenderer()
void SceneXRenderDecorationRenderer::render()
{
const QRegion scheduled = getScheduled();
QRegion scheduled = getScheduled();
if (scheduled.isEmpty()) {
return;
}
if (areImageSizesDirty()) {
resizePixmaps();
resetImageSizesDirty();
scheduled = client()->client()->decorationRect();
}
const QRect top(QPoint(0, 0), m_sizes[int(DecorationPart::Top)]);