backends/libinput: don't apply pointer acceleration to touchpad gestures

It's unexpected that increasing pointer "speed" would also change the distance
required to activate gestures
This commit is contained in:
Xaver Hugl 2024-07-31 19:19:07 +02:00
parent 99caa54901
commit e351d9dca1
2 changed files with 12 additions and 2 deletions

View file

@ -486,6 +486,16 @@ double libinput_event_gesture_get_dy(struct libinput_event_gesture *event)
return 0.0;
}
double libinput_event_gesture_get_dx_unaccelerated(struct libinput_event_gesture *event)
{
return libinput_event_gesture_get_dx(event);
}
double libinput_event_gesture_get_dy_unaccelerated(struct libinput_event_gesture *event)
{
return libinput_event_gesture_get_dy(event);
}
double libinput_event_gesture_get_scale(struct libinput_event_gesture *event)
{
switch (event->type) {

View file

@ -268,8 +268,8 @@ int GestureEvent::fingerCount() const
QPointF GestureEvent::delta() const
{
return QPointF(libinput_event_gesture_get_dx(m_gestureEvent),
libinput_event_gesture_get_dy(m_gestureEvent));
return QPointF(libinput_event_gesture_get_dx_unaccelerated(m_gestureEvent),
libinput_event_gesture_get_dy_unaccelerated(m_gestureEvent));
}
bool GestureEvent::isCancelled() const