summaryrefslogtreecommitdiff
path: root/src/grail-inserter.c
Commit message (Collapse)AuthorAgeFilesLines
* Introduce touch gesture eventsHenrik Rydberg2011-03-281-8/+14
| | | | | | | Touch gesture events follow the same logic as drags, except they cannot be held back but are emitted immediately. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make grabbing client exclusiveHenrik Rydberg2011-03-141-0/+9
| | | | | | | | | | | | | | | | When a possible gesture is started for a global client (sysflag set), it is desirable that gestures to other clients are disregarded until all contacts have left the surface. In principle this could be refined further, such that if gesture are not detected, they are passed on to other clients, but that also affects how touches are passed onto lower layers like XI2.1, so simply making sure a global system client gets all events potentially leading to gestures is good enough for now. Also note that in the current combination of synaptics/evdev X servers and grail, there can be no overlapping potential gestures between two global clients, or the resulting event recipient is not correct. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Replace touch logic with utouch frame engineHenrik Rydberg2011-01-021-18/+13
| | | | | | | | | | | The original grail uses an internal touch framework and exports some touch information as extended attributes to gesture events. This was never quite the intention, but rather to expose gestures and touches on a similar footing, such that grail can be input agnostic. This patch starts off by replacing the internal touch framework with the utouch-frame engine. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify book-keeping of active gesturesHenrik Rydberg2010-09-211-11/+3
| | | | | | | | | The current frame computation returns the event types to filter, which is less useful than knowing what gesture types are active in the frame. Add the active gesture types to the frame struct and simplify usage. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Plug hole in tentative gestures state during finger transitionHenrik Rydberg2010-08-261-1/+1
| | | | | | | | | During finger configuration transition, as well as after a tap, there would be no tentative gestures registered in the instantiator, leading to faulty emission of motion events. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add contact information to the property listHenrik Rydberg2010-08-191-121/+3
| | | | | | | | | | Add the five first contacts to the property list, and unify the handling of all gesture types in this regard. To avoid duplication, move the scaling of properties closer to the gesture recognizer. Move all gesture event handling code to grail-event.c, simplifying the structure somewhat. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Use the touch_caps directly rather than grail_get_units()Henrik Rydberg2010-08-191-8/+12
|
* Make gesture inserter visible to all local filesHenrik Rydberg2010-08-191-21/+9
| | | | | | Also remove the transformed flag in favor of a unit transformation. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify touch machineryHenrik Rydberg2010-08-191-2/+2
| | | | | | | | | | To be able to model touch information uniformly across all supported devices, the semantics of the touch attributes has to be treated explicitly. Drop the generic touch property array and replace it by an actual structure. In addition, the touch-engine abstraction turned out to not be needed, so drop it as well. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* add a translation utility to grailHenrik Rydberg2010-08-111-0/+113
| | | | | | | | By calling the grail_set_bbox(), grail will do translation of api coordinates and matching properties to an external coordinate system, such as screen coordinates. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add property declarations to grail-typesHenrik Rydberg2010-08-101-2/+4
| | | | | | Also add accumulated values for delta and velocity properties. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Send proper begin/update/end status for gesturesHenrik Rydberg2010-08-071-4/+8
| | | | | | For transient gestures like taps, use update only. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Update README and copyright in all filesHenrik Rydberg2010-08-061-3/+1
| | | | | | Add the author to the copyright, courtesy of Canonical Ltd. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* initial bzr repo at rev 27Henrik Rydberg2010-08-061-0/+282