diff options
Diffstat (limited to 'src/compositor/compositor_api/qwaylandseat.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandseat.cpp | 8 |
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); } /*! |