[Wayland-bugs] [Bug 83488] Document how serial should work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 29 08:28:42 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=83488

Jonas Ådahl <jadahl at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jadahl at gmail.com

--- Comment #3 from Jonas Ådahl <jadahl at gmail.com> ---
This came up on IRC recently, so writing down some points.

Currently there are various assumptions on what serials are that are used here
and there, most notably in xdg_shell.

This assumption is that for a wl_seat, all the serials for all the input
devices classes are not disjoint, i.e. they use the same serial counter thus
there will never be a "touch" serial that is the same as either a "keyboard" or
a "pointer" serial.

This is used to determine whether a grab request (e.g. popup grab, show window
menu, move, resize) should be ignored or not, or there was some other
interaction event that should cancel it. For example, it should be possible for
a compositor to not show a user touched somewhere after a popup triggering
click happened but before the compositor saw the popup request. This is
possible if the serials are not disjoint.

This could be seen as relying on an implementation detail, and it kind of is,
but I believe we should codify this in the protocol, which right now does not
specify this at all.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170329/8b67c982/attachment-0001.html>


More information about the wayland-bugs mailing list