[PATCH weston 1/2] compositor: Implement release request for input interfaces

Daniel Stone daniel at fooishbar.org
Wed Aug 14 03:12:58 PDT 2013


On 14 August 2013 10:03, Rob Bradford <robert.bradford at intel.com> wrote:
> On 13 August 2013 20:11, Rob Bradford <robert.bradford at intel.com> wrote:
>> +static void
>> +pointer_release(struct wl_client *client, struct wl_resource *resource)
>> +{
>> +       wl_resource_destroy(resource);
>> +}
>> +
>
> Wondering if we should also send leave events here if the pointer has
> a focus...The only other time we destroy an input resource is because
> the client has gone away and in that case the surface too. Perhaps
> worth extending the testing to enable pairs of get_pointer/release.

In principle I like this, since it avoids a roundtrip to know that you
won't get any more events from the device, but also hits the whole
non-null vs. zombie object problem, no?

Cheers,
Daniel


More information about the wayland-devel mailing list