Drop workaround for QTBUG-52092
I've been using kwaylandserver without this workaround for a while and haven't experienced any issues. Also, there were some sub-surface fixes in QtWayland.
This commit is contained in:
parent
8b7136f70d
commit
8f3993c91b
1 changed files with 0 additions and 8 deletions
|
@ -636,14 +636,6 @@ void SurfaceInterfacePrivate::swapStates(State *source, State *target, bool emit
|
|||
const QRegion bufferDamage = q->mapFromBuffer(target->bufferDamage);
|
||||
target->damage = windowRegion.intersected(target->damage.united(bufferDamage));
|
||||
emit q->damaged(target->damage);
|
||||
// workaround for https://bugreports.qt.io/browse/QTBUG-52092
|
||||
// if the surface is a sub-surface, but the main surface is not yet mapped, fake frame rendered
|
||||
if (subSurface) {
|
||||
const auto mainSurface = subSurface->mainSurface();
|
||||
if (!mainSurface || !mainSurface->buffer()) {
|
||||
q->frameRendered(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (surfaceToBufferMatrix != oldSurfaceToBufferMatrix) {
|
||||
|
|
Loading…
Reference in a new issue