Use Screens::geometry instead of displayWidth/Height in SceneQPainter
This commit is contained in:
parent
90e05c5798
commit
b58fd1603c
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ qint64 SceneQPainter::paint(QRegion damage, ToplevelList toplevels)
|
|||
m_painter->setClipRegion(damage);
|
||||
if (m_backend->needsFullRepaint()) {
|
||||
mask |= Scene::PAINT_SCREEN_BACKGROUND_FIRST;
|
||||
damage = QRegion(0, 0, displayWidth(), displayHeight());
|
||||
damage = screens()->geometry();
|
||||
}
|
||||
QRegion updateRegion, validRegion;
|
||||
paintScreen(&mask, damage, QRegion(), &updateRegion, &validRegion);
|
||||
|
|
Loading…
Reference in a new issue