diff --git a/src/wayland/surface_interface.cpp b/src/wayland/surface_interface.cpp index 4adf086007..27b48fc8b0 100644 --- a/src/wayland/surface_interface.cpp +++ b/src/wayland/surface_interface.cpp @@ -404,7 +404,6 @@ QList SurfaceInterface::surfaces() void SurfaceInterface::frameRendered(quint32 msec) { // notify all callbacks - const bool needsFlush = !d->current.frameCallbacks.isEmpty(); while (!d->current.frameCallbacks.isEmpty()) { KWaylandFrameCallback *frameCallback = d->current.frameCallbacks.takeFirst(); frameCallback->send_done(msec); @@ -413,9 +412,6 @@ void SurfaceInterface::frameRendered(quint32 msec) for (auto it = d->current.children.constBegin(); it != d->current.children.constEnd(); ++it) { (*it)->surface()->frameRendered(msec); } - if (needsFlush) { - client()->flush(); - } } bool SurfaceInterface::hasFrameCallbacks() const