GHOST/Wayland: support adding/removing global objects at runtime

Share logic for adding/removing global objects and freeing them on exit.

Refactor object registration add/remove into an array of callbacks
to localize logic into generic functions for each kind of interface.

Also corrects own error where the primary clipboard manager wasn't
being destroyed on exit.
This commit is contained in:
Campbell Barton 2022-10-24 20:33:33 +11:00
parent 5d5e0f1b0e
commit 97414fb484
Notes: blender-bot 2023-04-04 07:45:26 +02:00
Referenced by commit c1768507a9, Correct naming in 97414fb484
1 changed files with 703 additions and 197 deletions

File diff suppressed because it is too large Load Diff