[PATCH wayland] server: add helper functions for wl_global

Daniel Stone daniel at fooishbar.org
Mon Feb 23 08:59:20 PST 2015


On 23 February 2015 at 16:36, Jonny Lamb <jonny.lamb at collabora.co.uk> wrote:
> Il 23/02/2015 17:28, Derek Foreman ha scritto:
>> On 23/02/15 10:02 AM, Jonny Lamb wrote:
>>> The intention here is to be able to find an existing wl_global using
>>> some search parameters and then get some information about it.
>> I'm not sure I see a need for this, but if there is need there should
>> also be documentation. :)
> The use-case I have now is in ensuring only one wl_drm is created per
> wl_display.

Specifically, in the case where you have one wl_display bound to
multiple EGLDisplays, which may both try to add a wl_drm instance for
the same device. The freakish contrived usecase this was written to
support is where a compositor connects to an upstream Wayland
compositor for final display, but also connects to itself (long
story). You can definitely construct more sensible usecases though ...


More information about the wayland-devel mailing list