[PATCH 3/4] protocol: Introduce pointer_lock interface

Daniel Stone daniel at fooishbar.org
Mon Feb 25 21:28:15 PST 2013


On 25 February 2013 20:12, Bill Spitzak <spitzak at gmail.com> wrote:

> I think you are right, that removes the race condition where the pointer
> exits before the client sends the lock. If the client wants to lock when
> the user hits a button always, it can just release on the leave event.
>
> I suppose there still is a race if the user hits the lock-cursor button
> and then moves the mouse out so fast that it exits before the client sends
> the lock request. But this is a lot harder to hit that the quick enter+exit
> one.


That's like the sole entire reason we have serial numbers in the protocol.
 There's similar checks for a great deal of requests which would otherwise
race with focus changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130225/42eb80f9/attachment.html>


More information about the wayland-devel mailing list