server: add wl_display getter for wl_global

Graphics / Wayland / Wayland - Vlad Zahorodnii [kde.org] - 5 March 2021 09:12 UTC

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(+)

Upstream: cgit.freedesktop.org


  • Share