Commit 219b1b75 authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Flush client after sending a frameRendered callback

parent df22d2ac
......@@ -173,11 +173,15 @@ void SurfaceInterface::frameRendered(quint32 msec)
{
Q_D();
// notify all callbacks
const bool needsFlush = !d->current.callbacks.isEmpty();
while (!d->current.callbacks.isEmpty()) {
wl_resource *r = d->current.callbacks.takeFirst();
wl_callback_send_done(r, msec);
wl_resource_destroy(r);
}
if (needsFlush) {
client()->flush();
}
}
void SurfaceInterface::Private::destroy()
......
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