Merge branch 'Plasma/5.16'

This commit is contained in:
David Faure 2019-07-22 22:12:40 +02:00
commit 394d45d1d7
3 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ void X11Renderer::render()
bottom = bottom.intersected(geometry);
auto renderPart = [this, c](const QRect &geo) {
if (geo.isNull()) {
if (!geo.isValid()) {
return;
}
QImage image = renderToImage(geo);

View file

@ -2490,7 +2490,7 @@ void SceneOpenGLDecorationRenderer::render()
const QRect geometry = dirty ? QRect(QPoint(0, 0), client()->client()->geometry().size()) : scheduled.boundingRect();
auto renderPart = [this](const QRect &geo, const QRect &partRect, const QPoint &offset, bool rotated = false) {
if (geo.isNull()) {
if (!geo.isValid()) {
return;
}
QImage image = renderToImage(geo);

View file

@ -1231,7 +1231,7 @@ void SceneXRenderDecorationRenderer::render()
xcb_create_gc(c, m_gc, m_pixmaps[int(DecorationPart::Top)], 0, nullptr);
}
auto renderPart = [this, c](const QRect &geo, const QPoint &offset, int index) {
if (geo.isNull()) {
if (!geo.isValid()) {
return;
}
QImage image = renderToImage(geo);