[tools/generator] Improve resource destruction on server side
The generator misdetected the destructor Requests by looking at the arguments instead of the type of the request. In addition the destructor handling changed in KWayland::Server since the generator got created. There is now a shared implementation for the Resource destruction. The generator is adjusted to generate the code for that and implements the destruction for the Global resource destruction.
Showing with 31 additions and 14 deletions