[PATCH weston v2 2/2] xwayland: make the plugin usable by libweston compositors

Pekka Paalanen ppaalanen at gmail.com
Fri Jul 1 12:09:30 UTC 2016


On Wed, 29 Jun 2016 11:54:27 +0200
Giulio Camuffo <giuliocamuffo at gmail.com> wrote:

> This patch follows a similar approach taken to detach the backends
> from weston. But instead of passing a configuration struct when loading the
> plugin, we use the plugin API registry to register an API, and to get it
> in the compositor side.
> This API allows to spawn the Xwayland process in the compositor side, and
> to deal with signal handling.
> A new function is added in compositor.c to load and init the xwayland.so plugin.
> 
> Also make sure to re-arm the SIGUSR1 when the X server quits.
> 
> Signed-off-by: Giulio Camuffo <giuliocamuffo at gmail.com>
> ---
> 
> v2: - use strstr instead of strcmp to check the xwayland plugin name
> 
>  Makefile.am                |  14 ++-
>  compositor/main.c          |  16 ++-
>  compositor/weston.h        |   3 +
>  libweston/compositor.c     |  15 +++
>  libweston/compositor.h     |   3 +
>  xwayland/launcher.c        | 259 +++++++++++++++++++--------------------------
>  xwayland/weston-xwayland.c | 207 ++++++++++++++++++++++++++++++++++++
>  xwayland/xwayland-api.h    | 134 +++++++++++++++++++++++
>  xwayland/xwayland.h        |   9 +-
>  9 files changed, 492 insertions(+), 168 deletions(-)
>  create mode 100644 xwayland/weston-xwayland.c
>  create mode 100644 xwayland/xwayland-api.h
> 

Hi,

I have moved xwayland/weston-xwayland.c -> compositor/xwayland.c and
fixed Makefile.am accordingly.

Pushed both:
   24f917e..9c764df  master -> master


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160701/284f5911/attachment.sig>


More information about the wayland-devel mailing list