Use Screens::geometry instead of displayWidth/Height in SceneQPainter

This commit is contained in:
Martin Gräßlin 2016-08-23 13:16:09 +02:00
parent 90e05c5798
commit b58fd1603c

View file

@ -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);