summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-02-09 15:36:28 +0200
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-02-10 14:26:24 +0100
commitf089f453ae6ea3766a0ec41059371f6dc81ce9df (patch)
treedaf50df72293637bd0a0db2dfba6997e100e8684 /src/compositor/wayland_wrapper
parent0a25184b9af19786d8d20c520f93ee0bfc65355f (diff)
Add TouchCancel support.
It maps to the protocol's touch_cancel pretty well. :) Change-Id: Id417aac768106c2f6618b3e7ecb51d6929977c37 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper')
-rw-r--r--src/compositor/wayland_wrapper/wlinputdevice.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wlinputdevice.cpp b/src/compositor/wayland_wrapper/wlinputdevice.cpp
index fd08624b6..286335622 100644
--- a/src/compositor/wayland_wrapper/wlinputdevice.cpp
+++ b/src/compositor/wayland_wrapper/wlinputdevice.cpp
@@ -174,6 +174,11 @@ void InputDevice::sendFullTouchEvent(QTouchEvent *event)
return;
}
+ if (event->type() == QEvent::TouchCancel) {
+ sendTouchCancelEvent();
+ return;
+ }
+
TouchExtensionGlobal *ext = m_compositor->touchExtension();
if (ext) {
ext->postTouchEvent(event, mouseFocus());