Bug 85536

Summary: Accessibility: dwell click implementation
Product: Wayland Reporter: Peter Hutterer <peter.hutterer>
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium CC: bugzilla, peter.hutterer, samuel.thibault
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Peter Hutterer 2014-10-28 01:29:14 UTC
From https://help.gnome.org/users/mousetweaks/stable/mouse-a11y-functions-description.html.en#mouse-a11y-dwell-description

"There are users that cannot use any hardware button. By activating the Dwell Click, they can have the mouse perform the various clicks without pressing any mouse button. The click types that can be performed are: single primary click, double click, drag click and secondary click.
...

Each time the pointer stops moving, a dwell click is initiated."

The core is simple to implement, the tricky bit is the complex configuration options and the feedback. From the above link "To give feedback to the user, mousetweaks will fill the arrow of the pointer with another color while it is counting down the time before the click completion kicks in.". This is essentially impossible in libinput without flagging the event.

Maybe dwell click is better off as compositor option then?
Comment 1 Rui Tiago Matos 2014-10-29 09:50:06 UTC
I would say this is a compositor level thing. libinput isn't missing anything to implement it
Comment 2 Peter Hutterer 2014-10-29 10:06:38 UTC
another argument to implement this in the compositor: libinput only sees movement on a per-device level, but we must not trigger a dwell click if any other device is moving the pointer.
we don't know in libinput if an event will move the pointer (or which pointer, if multiple wl_seats are present).
Comment 3 Peter Hutterer 2015-04-22 03:51:44 UTC
Closing this bug, won't be implemented in libinput. See the above comments.
Comment 4 Bastien Nocera 2015-04-22 09:47:32 UTC
Mutter bug is at:
https://bugzilla.gnome.org/show_bug.cgi?id=747515

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.