~josharenson/unity8/fix_trust_store_focus

Viewing all changes in revision 1364.

  • Committer: CI bot
  • Author(s): Daniel d'Andrada
  • Date: 2014-10-13 15:42:40 UTC
  • mfrom: (1314.2.28 touchOwnership)
  • Revision ID: ps-jenkins@lists.canonical.com-20141013154240-bj7fc4eacs3z6co3
Add touch ownership logic on top of qt input handling

It does mainly 3 things:
- Adds TouchRegistry.
- Adds TouchGate
- Modifies DirectionalDragArea so that it uses TouchRegistry and only grabs a touch once it has recognized a gesture done by it.

TouchRegistry was put into a library as both unity8 and Ubuntu.Gestures plugin need to use it.

The next step is to have surfaces participating in the touch ownership negotiation. But for now they're put behind TouchGates so that they only receive thouches whose ownership has already been settled.

The most noticeable improvement of this patch is that taps near screen edges will now reach applications.

It also makes right-edge and bottom-edge drags only animate once a directional drag gesture has been fully recognized. Fixes: 1236290
Approved by: Albert Astals Cid

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: