Problems in KWayland causes by API and ABI compatibility promises

David Edmundson david at davidedmundson.co.uk
Mon Apr 20 22:50:02 BST 2020


> > The slight twist on that which we need to be wary of is that client
> > code will return shared objects if you request a
> > KWaylandClient::PlasmaShellSurface::get(window())
> > for the same window from two places you'll get the same PlasmaShell
> > instance returned - and therefore the same wl_resource.
> > If we hypothetically had a kwayland2::client also have a
> > plasmashellsurface::get() method we would have two plasma_shellsurface
> > wl_resources's for the same wl_surface which is a protocol error and
> > our client will get violently killed.
>
> Honestly you lost me here. :-)

Mixing libs for different protocols within one client is ok.
Mixing libs for the same protocol within one client is bad.

Hopefully the other kwin people will understand what I meant.

David


More information about the Kde-frameworks-devel mailing list