shell: Not not override the agl_shell interface resources 70/28070/2
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 26 Oct 2022 15:07:47 +0000 (18:07 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 5 Dec 2022 13:27:26 +0000 (15:27 +0200)
commit0b766cf978b8b100caecd4c61464e1a683685072
tree490d443e84fdce8196588882e8639323f4398ed9
parentc42f50b567a0d5adf2c51322d4d46e33ce4ccb59
shell: Not not override the agl_shell interface resources

This redoes a bit the way we assigned wl_resources created in case we got
a bound_ok or bound_fail event.

Previously, even if we get a 'bound_fail' event we would override the
shell_client.resource which would make activation of the legitimate
shell client impossible, so this change would make the shell_client.resource
not being set if that happens.

Secondly, this includes a reset change in the agl_shell destructor, a
reset which is implicitly being done when the correct operations for the
protocol specifications have been applied.

Bug-AGL: SPEC-4503
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ie87ce3b937f041a5704407593f580895f188ef56
src/shell.c