[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:
parent
2910645df0
commit
198ce47fec
1 changed files with 2 additions and 1 deletions
|
@ -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)]);
|
||||
|
|
Loading…
Reference in a new issue