[PATCH] compositor: fix release button notification

Rob Bradford rob at robster.org.uk
Wed Dec 7 07:56:23 PST 2011


On 7 December 2011 14:32, Tiago Vignatti <vignatti at freedesktop.org> wrote:
> From: Tiago Vignatti <tiago.vignatti at intel.com>
>
> Previously the client could set another grab via wl_input_device_update_grab,
> which would lead the compositor not delivering some button events. Now,
> independently the semantics the client defines, the compositor will send
> anyway a button event to the client, fixing the apparent issue.
>

This change also has the side-effect of changing the semantics in a
non-resize case: button inside surface move outside it and then
release.

With this change you don't get a button up when the pointer has moved
outside the surface - something the implicit grab was trying to
achieve.

Just the addition in this patch (not the removal) does give me
behaviour that maps to what GTK expects.

Cheerio,

Rob


More information about the wayland-devel mailing list