diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index ae4f173214..ca614986d3 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -1005,6 +1005,11 @@ TouchInterface *SeatInterface::touch() const return d->touch.data(); } +QPointF SeatInterface::firstTouchPointPosition() const +{ + return d->globalTouch.focus.firstTouchPos; +} + void SeatInterface::setFocusedTouchSurface(SurfaceInterface *surface, const QPointF &surfacePosition) { if (!d->touch) { diff --git a/src/wayland/seat_interface.h b/src/wayland/seat_interface.h index 6bd2d0c933..da626e2fbd 100644 --- a/src/wayland/seat_interface.h +++ b/src/wayland/seat_interface.h @@ -582,6 +582,7 @@ public: void notifyTouchFrame(); void notifyTouchCancel(); bool isTouchSequence() const; + QPointF firstTouchPointPosition() const; /** * @returns true if there is a touch sequence going on associated with a touch * down of the given @p serial.