Bug 90255

Summary: Enable tapping to end drag
Product: Wayland Reporter: Velimir Lisec <lisec.velimir>
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: grawity, peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 90172    
Bug Blocks:    
Attachments: Patch that enables the user to end the drag by tapping
Test cases for ending drag with a tap
Test cases for ending drag with a tap
Updated state diagram
Test cases for ending drag with a tap

Description Velimir Lisec 2015-04-30 10:52:09 UTC
Created attachment 115472 [details]
Patch that enables the user to end the drag by tapping

Currently for the drag to end user has to wait for a timeout to expire. Make it possible to just tap on a touchpad when you want drag to finish. I'm attaching a patch for this.
Comment 1 Peter Hutterer 2015-05-01 06:57:36 UTC
nice, looks correct. I'll do the changes to the diagram when I get to it. Any chance you can add a few test cases for this too?

test/touchpad.c, you should be able to use the various tap_n_drag cases as baseline. (don't modify them, just use them as a guide)
Comment 2 Velimir Lisec 2015-05-05 10:46:55 UTC
Created attachment 115541 [details] [review]
Test cases for ending drag with a tap
Comment 3 Velimir Lisec 2015-05-05 10:57:27 UTC
Created attachment 115542 [details]
Test cases for ending drag with a tap

Sorry, second test case in the last patch isn't good, here is the fixed one.
Comment 4 Peter Hutterer 2015-05-06 04:25:15 UTC
Created attachment 115572 [details]
Updated state diagram
Comment 5 Peter Hutterer 2015-05-06 04:28:14 UTC
Updated the state diagram, that works out fine. any chance you can add the 'click' test too? i.e. a click before the very last touch up.
Comment 6 Velimir Lisec 2015-05-06 06:51:51 UTC
Created attachment 115575 [details] [review]
Test cases for ending drag with a tap

I didn't know how to call the click test's, so I just add "click" after "tap" to the name. I hope that is OK.
Comment 7 Peter Hutterer 2015-05-06 07:14:16 UTC
all good, thanks. there's another patch set on the list atm that will partially conflict with this set but just take that as general FYI. I'll probably merge yours as-is first and then change it when the other one is merged. see
http://lists.freedesktop.org/archives/wayland-devel/2015-May/021801.html
Comment 8 Peter Hutterer 2015-05-06 07:19:41 UTC
can you double-check the test-touchpad test please, it seems to fail here consistently.
touchpad_1fg_multitap_n_drag_tap_click and touchpad_1fg_tap_n_drag_tap_click are the two that fail
Comment 9 Peter Hutterer 2015-05-06 07:35:24 UTC
nevermind, found it. one more button event was expected, I squashed that in.

http://lists.freedesktop.org/archives/wayland-devel/2015-May/021805.html
http://lists.freedesktop.org/archives/wayland-devel/2015-May/021806.html
Comment 10 Peter Hutterer 2015-05-18 04:48:48 UTC
Merged as 46171fbef381fbecec673fa870fafb3ce33e58d3, thanks for all the work.

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.