agl-shell: Add bound_ok and bound_fail events and a default destructor sandbox/mvlad/agl-shell-v2-bind-events-destructor
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 3 Aug 2022 13:14:17 +0000 (16:14 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 3 Aug 2022 13:14:17 +0000 (16:14 +0300)
commit8d56df3636508eba4e3fd5962c543662877ade1c
tree98ab69672e76a46b699ae455451d8c4e68d75041
parentf96fc9e91ab950c674a11a056be7d2d475e6b2d7
agl-shell: Add bound_ok and bound_fail events and a default destructor

As we're increasing the amount of combinations we could have in the AGL
platforms, in which we're mixing various platforms, we require a way
to tell clients that there's already a shell client which is charge.

We can't really have multiple shell clients managing the windows and
surfaces but in the same time we don't want to sever the waylad
connection the way it happens in the first version of this protocol
interface. Racy alternatives might exist, which basically avoids
advertising the interface altogether once a client did bind to the
interface but that's not really a viable solution.

So, instead of doing that, this patch introduces two new events which
tells either client that it was either successful, and it can continue
issue requests and receive events and a fail event.

While doing an update to protocol, to add those two events add also
a default destructor for the protocol.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
protocol/agl-shell.xml