Add a function to the compositor api to send full touch events
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 10 Jan 2012 08:33:55 +0000 (10:33 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 10 Jan 2012 11:36:44 +0000 (12:36 +0100)
commitbecc850c22c3bc9e4a2a2fc7140cb0dc95bfd8df
tree16854b4b43c1725864db162339554556f7f84d58
parent6c32ea510f7f75764c7039e6f117e9b6e43b4622
Add a function to the compositor api to send full touch events

A simple sendTouchPointEvent(id, x, y, ...) type of function will not
be sufficient in the future due to the amount of data in a touch
event; therefore an additional sendFullTouchEvent is introduced. This
function takes a QTouchEvent and posts a series of down, motion, up,
frame events as needed. In the future it may be changed so that it
maps to a protocol extension instead of the standard events.

As an example qwindow-compositor is updated to use this new function.

Change-Id: I39d3df1c6d4868364440f59789d01fc5b7b80dac
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
examples/qwindow-compositor/qwindowcompositor.cpp
src/compositor/compositor_api/waylandsurface.cpp
src/compositor/compositor_api/waylandsurface.h
src/compositor/wayland_wrapper/wlsurface.cpp
src/compositor/wayland_wrapper/wlsurface.h