• Giulio Camuffo's avatar
    xwayland: make the plugin usable by libweston compositors · 9c764df0
    Giulio Camuffo authored
    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: default avatarGiulio Camuffo <giuliocamuffo@gmail.com>
    [Pekka: moved xwayland/weston-xwayland.c -> compositor/xwayland.c]
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    9c764df0
xwayland.h 5.55 KB