[Development] Touchpad gestures on Wayland
Shawn Rutledge
Shawn.Rutledge at qt.io
Wed Dec 2 06:42:40 CET 2020
On 2 Dec 2020, at 00:38, Povilas Kanapickas <povilas at radix.lt<mailto:povilas at radix.lt>> wrote:
Hello,
I would like to implement support for Wayland touchpad gestures[1] to
Qt. Would you potentially accept such a contribution from an outside
developer if the CLAs are signed and other legal conditions are accepted?
Wayland currently provides swipe and pinch touchpad gestures which could
be represented by QPinchGesture and QSwipeGesture classes. It seems that
the gesture events could be handled just like they are handled on macOS,
but this needs a proof of concept to make sure the assumption holds.
Yes that sounds right to me. Even more urgent I think is to get QWheelEvents with pixel deltas and scroll phases, like we have on macOS, when you are using the flick gesture (two-finger-flick, maybe edge flick if it’s configurable).
If you agree that it makes sense for me to work on this feature, I will
come back with a more concrete proposal later.
Previously I've implemented touchpad gesture support in X11 and the X11
backend of Gtk so I know a little bit about this area. The code is
currently under review and once it's merged to X11 I'll come back with a
proposal for this part of Qt too.
I will work with you on this.
There was another patch someone started to add this for libinput, but then gave up for some reason, so I was thinking of getting back to it myself eventually:
https://codereview.qt-project.org/c/qt/qtbase/+/293172
Maybe we could support trackpad gestures on X11 too?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20201202/830a4889/attachment.html>
More information about the Development
mailing list