Remove manual flush when sending buffer release event

This way we can batch more events before flushing the client connection.
This commit is contained in:
Vlad Zahorodnii 2021-06-19 10:37:49 +03:00
parent ac60e35818
commit 98477eabc1

View file

@ -238,7 +238,6 @@ void BufferInterface::unref()
if (d->refCount == 0) {
if (d->buffer) {
wl_buffer_send_release(d->buffer);
wl_client_flush(wl_resource_get_client(d->buffer));
}
}
}