diff --git a/src/input.cpp b/src/input.cpp index f49640027b..88374e1493 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -2428,9 +2428,8 @@ void InputRedirection::setupLibInput() } ); connect(conn, &LibInput::Connection::pointerMotionAbsolute, this, - [this] (QPointF orig, QPointF screen, uint32_t time, LibInput::Device *device) { - Q_UNUSED(orig) - m_pointer->processMotion(screen, time, device); + [this] (const QPointF &position, uint32_t time, LibInput::Device *device) { + m_pointer->processMotion(position, time, device); } ); connect(conn, &LibInput::Connection::touchDown, m_touch, &TouchInputRedirection::processDown); diff --git a/src/libinput/connection.cpp b/src/libinput/connection.cpp index f2ed2adecf..f2599b0d76 100644 --- a/src/libinput/connection.cpp +++ b/src/libinput/connection.cpp @@ -440,7 +440,7 @@ void Connection::processEvents() } case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: { PointerEvent *pe = static_cast(event.data()); - Q_EMIT pointerMotionAbsolute(pe->absolutePos(), pe->absolutePos(m_size), pe->time(), pe->device()); + Q_EMIT pointerMotionAbsolute(pe->absolutePos(m_size), pe->time(), pe->device()); break; } case LIBINPUT_EVENT_TOUCH_DOWN: { diff --git a/src/libinput/connection.h b/src/libinput/connection.h index 2a65ad4bb9..bb2ed0cc5e 100644 --- a/src/libinput/connection.h +++ b/src/libinput/connection.h @@ -89,7 +89,7 @@ public: Q_SIGNALS: void keyChanged(quint32 key, KWin::InputRedirection::KeyboardKeyState, quint32 time, KWin::LibInput::Device *device); void pointerButtonChanged(quint32 button, KWin::InputRedirection::PointerButtonState state, quint32 time, KWin::LibInput::Device *device); - void pointerMotionAbsolute(QPointF orig, QPointF screen, quint32 time, KWin::LibInput::Device *device); + void pointerMotionAbsolute(const QPointF &position, quint32 time, KWin::LibInput::Device *device); void pointerMotion(const QSizeF &delta, const QSizeF &deltaNonAccelerated, quint32 time, quint64 timeMicroseconds, KWin::LibInput::Device *device); void pointerAxisChanged(KWin::InputRedirection::PointerAxis axis, qreal delta, qint32 discreteDelta, KWin::InputRedirection::PointerAxisSource source, quint32 time, KWin::LibInput::Device *device);