kwin/libinput
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
..
connection.cpp [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
connection.h [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
context.cpp Fix build of stable branch on build.kde.org 2016-03-03 08:00:55 +01:00
context.h
device.cpp [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
device.h [libinput] Support toggleTouchpad 2016-05-11 14:19:25 +02:00
events.cpp
events.h
libinput_logging.cpp
libinput_logging.h