is there anyway to get which compositor did the client "wl_display" object connected?
tugouxp
13824125580 at 163.com
Thu Jun 14 08:59:54 UTC 2018
hi:
thanks for you answer.
i need this on webkitgtk debug scenario, webkitgtk has a nested compositor, it seems the "webprocess" of webkit need both connect the nest compositer and the system compositors, so there are two some of objecet sets with same client type. for example:
i dont know which compositor the "wl_compositor_create_surface" performs on? is there any way to know this?
118 WlUniquePtr<struct wl_surface> PlatformDisplayWayland::createSurface() const
119 {
120 if (!m_compositor)
121 ¦ return nullptr;
122
123 return WlUniquePtr<struct wl_surface>(wl_compositor_create_surface(m_compositor.get()));
124 }
thanks for your support!
At 2018-06-14 15:15:25, "Pekka Paalanen" <ppaalanen at gmail.com> wrote:
>On Thu, 14 Jun 2018 10:30:35 +0800 (CST)
>tugouxp <13824125580 at 163.com> wrote:
>
>> hi folks:
>> there are scenario that when more than one compositor (such as nested compositor" ) exists.
>>
>>
>> how to distinguish which server do the client "wl_display*" object connected? is there any way to do this?
>
>Hi,
>
>I think you could get the socket fd and fstat() it, but aside that I
>don't recall anything. There might not even be a file if the connection
>was created with socketpair(). I'm not sure if you can somehow get the
>pid of the server process, maybe you can. There is no protocol for
>identifying the server, but if this is about an app-internal server,
>you could easily write tiny a protocol extension to identify your
>internal server from anything else.
>
>What do you want to use it for?
>
>
>Thanks,
>pq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180614/d67289cd/attachment-0001.html>
More information about the wayland-devel
mailing list