server: add listener API for new clients
authorSungjae Park <nicesj@nicesj.com>
Tue, 9 Aug 2016 10:46:51 +0000 (12:46 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 11 Aug 2016 11:35:28 +0000 (14:35 +0300)
commitbe48da6a42b399252959ef782132fdfdf62c6905
tree7c02f2c789371458658a57a9cfb0ade699d9b583
parent5636cb2f056d813b464c451754908e17de838e3a
server: add listener API for new clients

Using display object, Emit a signal if a new client is created.

In the server-side, we can get the destroy event of a client,
But there is no way to get the created event of it.
Of course, we can get the client object from the global registry
binding callbacks.
But it can be called several times with same client object.
And even if A client creates display object,
(so there is a connection), The server could not know that.
There could be more use-cases not only for this.

Giulio: a test is added for the new functionality

Signed-off-by: Sung-jae Park <nicesj@nicesj.com>
Signed-off-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Makefile.am
src/wayland-server-core.h
src/wayland-server.c
tests/compositor-introspection-test.c [new file with mode: 0644]