[Wayland-bugs] [Bug 104867] Export the number of touches

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 1 11:06:23 UTC 2018


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

--- Comment #2 from Carlos Garnacho Parro <carlosg at gnome.org> ---
(In reply to Peter Hutterer from comment #1)
> Just a few notes: the TOUCH capability is assigned to any touch device, even
> single-touch touchscreens. Whether it's single touch or multi-touch is not
> exposed, but we have device->mt.slots_len with the number of slots
> internally.
> 
> There is no capability API outside of that, the closest we have for querying
> specific devices is the libinput_device_<type>_has* set of functions to
> check for buttons or keys. So libinput_device_touch_get_num_touches() would
> fit, and so would libinput_device_touch_has_multitouch() for a basic boolean
> check.
> 
> CC-ing carlos in case he has any thoughts on using it in mutter.

Not specifically tbh. All multitouch functionality is already redundant so we
don't have any place where we want to act differently if n_touches==1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180201/223262ba/attachment-0001.html>


More information about the wayland-bugs mailing list