summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wltouch.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-251-6/+6
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie65cbe0c622780d2f0672bce19d267d1167620ff Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
* Pass device capabilities to client in the touch extensionLaszlo Agocs2012-04-261-1/+1
| | | | | | | Assuming that all capabilities are available is not a good idea. Change-Id: I06c0f6c14583e7a25d4a07058976ea347e2dc8fa Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix compilation against latest qtbase.Samuel Rødal2012-04-191-1/+1
| | | | | Change-Id: Ifebba587327a984e688825fda2ca2414ce19ba21 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Change the touch extension to be always available.Laszlo Agocs2012-03-281-2/+6
| | | | | | | | Not opt-in anymore. Clients that connect to the extension will get the extended touch events, others will get the regular events. Change-Id: I91daec1949814fff5cfa0ebcc82c0977eee963b7 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Use the new cool event wrapper functions generated by wayland-scannerJørgen Lind2012-03-051-2/+2
| | | | | | | | | | This gives us some more static typechecking which is cool.. This fixes actually a couple of minor bugs we had, one where we didn't send a value for the refreshrate of a screen, and a couple in selection. Change-Id: I2b4193b488784885d7cce27f7f5b2d2df45c6c83 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add mouse event synthesizing to the touch extension protocol.Laszlo Agocs2012-02-071-1/+3
| | | | | | | | | The compositor can now be configured to tell the clients to generate mouse events when receiving touch events. In touchscreen-only systems this can be used to reduce the number of Wayland events. Change-Id: I231a15cd4ed463ee81c510c082a270efa255a1f3 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I08d8673382f0230d5c5a22a25efaf5c45cef539a Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ib67c393df41c539deae0ef71e0acc13029ceb46d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Avoid using an extra event for each touch report.Laszlo Agocs2012-01-161-3/+10
| | | | | | | | | | Instead of using touch_frame the number of non-stationary points (that is, the number of touch events sent) is included in the touch events themselves. Change-Id: Ied29f05d7e00676d47ee0b91006cafb4569951c4 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Do not send stationary pointsLaszlo Agocs2012-01-161-0/+4
| | | | | | Change-Id: Id534965df614bcbff3bfe5f8fd5484c370222196 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Send the contents of the rawScreenPositions() list too.Laszlo Agocs2012-01-161-0/+29
| | | | | | Change-Id: If43c4e07ae919b77050aaf5dcffea3b8d48ac460 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Rename touch extension interface and fix event sendingLaszlo Agocs2012-01-161-5/+9
| | | | | | | | | | | Follow the naming convention of other extensions. The events are now posted only to the client to which the focus surface belongs, the check was previously missing. Change-Id: Ie43b6e887b64c7bed1377babb368129753a3cd0f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Update license headers.Jason McDonald2012-01-161-27/+26
| | | | | | | | | | All code in this module outside of src/plugins/platforms/wayland should carry a copy of the BSD license header. The master copy of this header lives at qtbase/header.BSD. Change-Id: Icd56f24f4a3d309db4c1c3aaef25618680c07f6e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Introduce a touch protocol extension.Laszlo Agocs2012-01-131-0/+127
Using this opt-in protocol extension all data from QTouchEvent will properly be delivered to the clients. By default compositors will still use the standard and limited protocol for touch events to remain compatible with non-Qt clients. However by calling enableTouchExtension() in the compositor, touch events will be sent through the new protocol and thus Qt clients will receive proper QTouchEvents. Non-Qt clients will get no touch data in this mode. The contents of the rawScreenPositions() list are not yet delivered as the size implications remain to be checked. Change-Id: I981b9c4d44ea808a95b770bf948320abd47fc036 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>