Lifetime of wl_seat objects (was Re: [PATCH wayland-protocols 1/2] Introduce wp_relative_pointer) interface

Daniel Stone daniel at fooishbar.org
Mon Nov 30 13:49:44 PST 2015


On 24 November 2015 at 00:21, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> bad. in X we had cases where a client would run multiple versions of the
> same protocol (the toolkit would support XI2.0, a toolkit plugin XI2.2). I
> don't know whether that's likely to happen in wayland, but generally you
> cannot define the behaviour based on versions.

In general, this is fixed by having the version be per-bind/object,
rather than per-client. I will grant you that
wl_{keyboard,pointer}.{enter,leave} do muddy the waters a little here,
but I wouldn't expect wl_seat objects to be passed by reference
between modules.

Cheers,
Daniel


More information about the wayland-devel mailing list