Forwarding windows to another compositor via Weston

Pekka Paalanen ppaalanen at gmail.com
Mon Feb 12 10:48:26 UTC 2018


On Fri, 9 Feb 2018 18:30:13 -0500
Nicholas Bishop <nbishop at neverware.com> wrote:

> Hi,
> 
> Is there a way to run Weston as a nested compositor without the root
> window? My use case is running a parent compositor that doesn't support
> Xwayland, so I'd like to use Weston for X applications and have the
> resulting windows appear as regular windows within the parent compositor.
> 
> Is something like this possible (or even reasonable)? Alternative
> suggestions welcome too :)

Hi,

Weston's Wayland backend has no such code, it would need to be written.
Essentially one would implement assign_planes hook that would make sure
to leave nothing on the primary plane. This would need code to forward
each wl_buffer type in its appropriate way and all the window
management.

However, wanting to forward X11 windows would be problematic, because
in rootless mode you lose the control of absolute positions and you
basically lose a lot of window management behaviour that X11 clients
expect to work. This happens because Wayland for the desktops is
specifically designed to avoid many features the X11 clients are
accustomed to, like being able to control window position and
z-order, and grab input devices.

My personal opinion is that effort would be better spent in helping the
parent compositor project to support Xwayland instead.


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


More information about the wayland-devel mailing list