[Bug 785433] Re: Touch end events not handled

Chase Douglas chase.douglas at canonical.com
Thu Jun 23 18:04:17 UTC 2011


** Description changed:

+ SRU Justification:
+ 
+ Impact: The new multitouch functionality in Ubuntu Natty works well
+ enough for the example applications. However, it does not handle touch
+ end events properly, which can cause applications relying on accurate
+ touch state to fail.
+ 
+ How Addressed: The current code calls the
+ QApplication::translateRawTouchEvent function with the current touch
+ state. However, in the case of touch end the previous state must be
+ passed in order for the function to see what has been changed and emit
+ the correct touch end events. The patch copies the previous state into a
+ new array when a touch ends, and this new array is passed to the
+ function. The application state is still updated so that reentrancy will
+ not be a problem.
+ 
+ Patches:
+ http://bazaar.launchpad.net/~kubuntu-packagers/qt/ubuntu/revision/168
+ http://bazaar.launchpad.net/~kubuntu-packagers/qt/ubuntu/revision/175
+ 
+ Test Case: Checkout the TouchArea QML plugin here:
+ http://qt.gitorious.org/qt-labs/qml-toucharea. Build it and then run
+ "qmlviewer main.qml" in the TouchTest directory to launch a test
+ application. The current code will drag the touch boxes around for up to
+ the first two touches and then the touch boxes will cease to move with
+ any new touches. With the fix, the touch boxes will always be controlled
+ by touches on the application. Note that this requires a touchscreen to
+ test.
+ 
+ Regression Potential: Minimal. This only affects the X11 multitouch code
+ and has been reviewed and approved by the original Qt X11 multitouch
+ patch developer.
+ 
+ -----
+ 
  Touch end events from XInput 2.1 are not being handled properly by qt.
  QTouchEvent begin and update events come through just fine, but end
  events are never seen, and the touches are never removed from the list
  of currently active touchpoints.

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in Ubuntu.
https://bugs.launchpad.net/bugs/785433

Title:
  Touch end events not handled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/785433/+subscriptions




More information about the kubuntu-bugs mailing list