summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandseat.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-09-21 12:37:12 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-09-28 13:09:06 +0000
commit151048920fed4ed15af12936010e66d5d4bd5555 (patch)
tree9381330c1d45563c44851a9ee187438da2d1b0d8 /src/compositor/compositor_api/qwaylandseat.cpp
parent21ab16ca3c8d19a31d915d8fe46172a0d6b73bd3 (diff)
Return serial from sendTouchPointEvent
Note that sendFullTouchEvent does not return any serial, because it might result in multiple events being sent with different serials, choosing one doesn't make sense and returning a vector of them seems a little over the top since they won't be used most of the time. Change-Id: Ie38b57dae1c7553668b04d4a62f5a074d78f63dd Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandseat.cpp')
-rw-r--r--src/compositor/compositor_api/qwaylandseat.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compositor/compositor_api/qwaylandseat.cpp b/src/compositor/compositor_api/qwaylandseat.cpp
index f84325185..145184c0e 100644
--- a/src/compositor/compositor_api/qwaylandseat.cpp
+++ b/src/compositor/compositor_api/qwaylandseat.cpp
@@ -242,14 +242,16 @@ void QWaylandSeat::sendKeyReleaseEvent(uint code)
/*!
* Sends a touch point event with the given \a id and \a state to the touch device. The position
* of the touch point is given by \a point.
+ *
+ * Returns the serial for the touch up or touch down event.
*/
-void QWaylandSeat::sendTouchPointEvent(int id, const QPointF &point, Qt::TouchPointState state)
+uint QWaylandSeat::sendTouchPointEvent(int id, const QPointF &point, Qt::TouchPointState state)
{
Q_D(QWaylandSeat);
if (d->touch.isNull()) {
- return;
+ return 0;
}
- d->touch->sendTouchPointEvent(id, point,state);
+ return d->touch->sendTouchPointEvent(id, point,state);
}
/*!