Diffusion KWin 8a83a6fef56a

[libinput] Add support for gesture events

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

Description

[libinput] Add support for gesture events

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

Reviewers: KWin, Plasma on Wayland

Subscribers: plasma-devel, kwin

Tags: Plasma on Wayland, KWin

Differential Revision: https://phabricator.kde.org/D2359

Details

Committed
graesslinAug 8 2016, 7:15 AM
Differential Revision
D2359: [libinput] Add support for gesture events
Parents
R108:50571b7921ab: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown