Add a flush to ClientConnection

This commit is contained in:
Martin Gräßlin 2014-11-19 17:02:27 +01:00
parent 14d052d9d1
commit fce51fb313
3 changed files with 9 additions and 2 deletions

View file

@ -90,6 +90,11 @@ ClientConnection::ClientConnection(wl_client *c, Display *parent)
ClientConnection::~ClientConnection() = default;
void ClientConnection::flush()
{
wl_client_flush(d->client);
}
wl_client *ClientConnection::client()
{
return d->client;

View file

@ -39,6 +39,8 @@ class KWAYLANDSERVER_EXPORT ClientConnection : public QObject
public:
virtual ~ClientConnection();
void flush();
wl_client *client();
Display *display();

View file

@ -231,7 +231,7 @@ void ShellSurfaceInterface::Private::ping()
}
pingSerial = global->display()->nextSerial();
wl_shell_surface_send_ping(resource, pingSerial);
wl_client_flush(*client);
client->flush();
pingTimer->start();
}
@ -252,7 +252,7 @@ void ShellSurfaceInterface::requestSize(const QSize &size)
Q_D();
// TODO: what about the edges?
wl_shell_surface_send_configure(d->resource, 0, size.width(), size.height());
wl_client_flush(*d->client);
d->client->flush();
}
void ShellSurfaceInterface::Private::moveCallback(wl_client *client, wl_resource *resource, wl_resource *seat, uint32_t serial)