Two wayland connection in single process context

Armin Krezović krezovic.armin at
Wed Jul 27 14:13:46 UTC 2016

On 27.07.2016 13:36, Vikas Patil wrote:
> Dear All,
> Could you comment/suggest on following approach of using two different
> wayland connection in single process?
> First wayland connection for creating wl_shm backed wayland surface
> for receiving touch inputs in main thread or as separate thread. Like
> simple-touch.c example but without painting and transparent.
> Second wayland connection for another egl wayland surface for
> rendering in shared library which will be loaded by above application.
> Like simple-egl.c example.
> Will this work? Is it this the right way to do it or is there any
> other mechanism available for such requirement?
> Thanks & Regards,
> Vikash
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at

Hi, have you looked at clients/nested.c and clients/nested-client.c?

It seems to be similar to what you want, but instead from a single process,
it appears to combine two differ clients into one, by making a nested
act as a wayland server and then letting the nested-client use nested as
its server.

I believe its aim was to solve a problem for Webkit's separate process
architecture, where renderer process was separate from the webkit's main

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 855 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the wayland-devel mailing list