[PATCH weston 1/2] libinput: Ignore non seat wide pointer button events
Bill Spitzak
spitzak at gmail.com
Thu Jan 29 19:32:17 PST 2015
On 01/29/2015 03:09 AM, Carlos Garnacho wrote:
> On miƩ, 2015-01-28 at 13:09 -0800, Bill Spitzak wrote:
>> I would greatly prefer to get an event when this happens. The user
>> expects something to happen when they push a button. You cannot just
>> throw it away.
>>
>> I think it is perfectly safe to send multiple press and release events.
>> No program is going to fail because of this.
>
> As a toolkit guy, this is a "no-no". Things like implicit grab tracking
> rely on some coherence from the windowing system, and many button
> handlers highly count on just receiving 1 event pair per button. unless
> toolkits have per-button counters and keep track of this themselves
> (they don't), multiple presses & releases on the same button is going to
> confuse toolkits and apps big time.
Sorry I disagree. Most toolkits will just treat the first press as the
press and the first release as the release and ignore the others. No
counter is needed.
More information about the wayland-devel
mailing list