kwin/autotests/libinput
Martin Flöser ac2f41c86d [libinput] Add support for switch devices and events
Summary:
This change adds support for the switch devices introduces with libinput
1.7 (lid) and 1.9 (tablet mode). So far it's not yet used internally in
KWin, but only exposed through the Device and Events.

As KWin currently only requires libinput 1.5 and we are rather late in
the release cycle the new functionality is ifdef'ed. The requirement
will be raised once master is 5.13. It is already available on
build.kde.org, but e.g. Neon only has 1.6.

The switch events are interesting as they report whether the lid is
closed (might be interesting for e.g. powerdevil) and whether a
convertible is in tablet mode (supported for e.g. Lenovo Yogas with
recent kernel). This can be used by KWin internally to enable/disable
the virtual keyboard. And can be exposed globally to switch to Plasma
Mobile shell in future.

Test Plan:
Only through test case as my Lenovo Yoga uses Neon which has a
too old libinput

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9516
2018-01-04 18:05:44 +01:00
..
CMakeLists.txt [libinput] Add support for switch devices and events 2018-01-04 18:05:44 +01:00
context_test.cpp
device_test.cpp [libinput] Add support for switch devices and events 2018-01-04 18:05:44 +01:00
gesture_event_test.cpp
input_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
key_event_test.cpp
mock_libinput.cpp [libinput] Add support for switch devices and events 2018-01-04 18:05:44 +01:00
mock_libinput.h [libinput] Add support for switch devices and events 2018-01-04 18:05:44 +01:00
mock_udev.cpp
mock_udev.h
pointer_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
switch_event_test.cpp [libinput] Add support for switch devices and events 2018-01-04 18:05:44 +01:00
touch_event_test.cpp Fix TouchEvent::id() returning -1, fixes a crash 2017-09-19 07:11:40 +03:00