[libinput] Add support for gesture events
ClosedPublic

Authored by graesslin on Aug 5 2016, 12:40 PM.

Details

Summary

Gesture events are swipe or pinch events on a touch pad.

This change implements basic support by:

  • wrapping them in LibInput::Event
  • processing them in LibInput::Connection and emitting dedicated signals
  • Forwarding them in InputRedirection to PointerInputRedirection
  • Support them in the internal input event filter
  • Printing debug information in DebugConsole

Further handling is not yet done. In future the following should be
implemented:

  • activating e.g. zoom and present windows on pinch/swipe gesture
  • forwarding non global gestures to KWayland

Note that forwarding to KWayland is not yet useful as QtWayland does
not yet have support for the unstable protocol. No Qt application could
make use of it yet. So for the moment just global gestures is the best
we can get.

Test Plan

Looked at output of DebugConsole when triggering gestures

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 5693.Aug 5 2016, 12:40 PM
graesslin retitled this revision from to [libinput] Add support for gesture events.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptAug 5 2016, 12:40 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Aug 5 2016, 12:48 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Aug 5 2016, 12:48 PM
This revision was automatically updated to reflect the committed changes.