diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-01-13 17:37:49 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-01-13 17:28:40 +0100 |
commit | 27f9b7e3d26df8a33b86161d91ddeb8f80ffa4e3 (patch) | |
tree | 6ad54bf41935598657c27e099ad79fe05ceebfd6 /src/plugins/platforms/wayland/qwaylandinputdevice.cpp | |
parent | 2fcfaf58e68e1bad67057bae39e194884a445f4b (diff) |
Introduce a touch protocol extension.
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>
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandinputdevice.cpp')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandinputdevice.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp index 48aa29171..9625cd820 100644 --- a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp +++ b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp @@ -65,8 +65,9 @@ QWaylandInputDevice::QWaylandInputDevice(QWaylandDisplay *display, : mQDisplay(display) , mDisplay(display->wl_display()) , mTransferDevice(0) - , mPointerFocus(NULL) - , mKeyboardFocus(NULL) + , mPointerFocus(0) + , mKeyboardFocus(0) + , mTouchFocus(0) , mButtons(0) { mInputDevice = static_cast<struct wl_input_device *> |