Commit a930e59f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Revert "Don't flush in SurfaceInterface::frameRendered()"

This reverts commit 3cf004b6.

Unfortunately, 3cf004b6 broke a couple of tests in kwin due to Qt not
emitting QAbstractEventDispatcher::aboutToBlock() signal when macros
such as QTRY_VERIFY() or QTRY_COMPARE() spin the event loop.
parent 3cf004b6
......@@ -426,6 +426,7 @@ QList<SurfaceInterface *> 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();
......@@ -438,6 +439,9 @@ void SurfaceInterface::frameRendered(quint32 msec)
if (needsFlush) {
QMatrix4x4 SurfaceInterfacePrivate::buildSurfaceToBufferMatrix(const State *state)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment