kwin/tests
Martin Gräßlin 5e284224ee [libinput] Support toggleTouchpad
Summary:
The LibInput::Device provides a way to enable/disable the device.
This is used by the Connection to toggle all touchpad devices on/off
when the touchpad key is pressed. For this KWin "steals" the global
shortcuts from the touchpad kded.

Detecting what is a touchpad is unfortunately not tivial. The code
uses the following approach:
* it's a pointer
* it's not also a keyboard or touch screen
* it's at least one of the following:
 ** supports multiple tap fingers
 ** supports disable while typing
 ** supports disable on external mouse

If the code finds a touchpad and changes it's state successfully,
it triggers the touchpadEnabledChanged on Plasma's osdService.

Test Plan: Tested on notebook with toggle touchpad button

Reviewers: #plasma

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1545
2016-05-11 14:19:25 +02:00
..
CMakeLists.txt [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
libinputtest.cpp Touch support in libinput 2015-03-25 16:40:17 +01:00
normalhintsbasesizetest.cpp
screenedgeshowtest.cpp Add hint similar to autohide to raise/lower a window 2015-10-12 10:37:16 +01:00
unmapdestroytest.qml Try to wait for DESTROY_NOTIFY before releasing an Unmanaged 2014-04-16 13:32:11 +02:00
waylandclienttest.cpp [tests] Support a trasient window in the waylandclienttest 2015-10-01 14:03:48 +02:00
waylandclienttest.h [tests] Support a trasient window in the waylandclienttest 2015-10-01 14:03:48 +02:00