client: Redo management of tablet object proxies


Since 5af836aea3bb91a9f388e565415dc33b2fde4577 tools and pads can sometimes
be parented to tablets. When a tablet is unplugged sometimes the remove
event for the tablet can be sent before the remove events for the pad.
Deleting the tablet will also delete the pad but not the pad proxy,
resulting in a crash when the pad remove event is received.
This moves destruction of the wayland proxies which makes everything much
simpler as not every location that deletes those objects needs to call
destroy and fixes the described problem.

Pick-to: 6.8
Change-Id: I0aaeda3d3996251e411229b5e97aa1ce0bce43ac
Reviewed-by: David Edmundson <davidedmundson@kde.org>
commit1f76835d1805d9b1c25c136a19c1101f19cc2259
parent4b0495ebf21dc848a1d46ae5c63ae508abdcf622
authorDavid Redondo <qt@david-redondo.de>
committerDavid Redondo <qt@david-redondo.de>
commit timeMon, 25 Nov 2024 11:12:47 +0100