libinput: Drop mm position in Connection::pointerMotionAbsolute()
The position in millimeters is unused and it can't be applied to virtual input devices.
This commit is contained in:
parent
bf620fbe04
commit
6b015d1e6e
3 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -440,7 +440,7 @@ void Connection::processEvents()
|
|||
}
|
||||
case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: {
|
||||
PointerEvent *pe = static_cast<PointerEvent*>(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: {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue