This can be useful if the compositor wants to call wl_global_destroy() with some delay but it doesn't have the wl_display object associated with the global, which is needed to get access to the event loop.
2b22160 server: add wl_display getter for wl_global
src/wayland-server-core.h | 3 +++
src/wayland-server.c | 14 ++++++++++++++
2 files changed, 17 insertions(+)