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 Move Udev into an own header and implementation 2015-04-24 12:03:19 +02:00
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 Touch support in libinput 2015-03-25 16:40:17 +01:00
events.h Touch support in libinput 2015-03-25 16:40:17 +01:00
libinput_logging.cpp [libinput] Add dedicated logging category for libinput 2015-07-31 12:43:35 +02:00
libinput_logging.h [libinput] Add dedicated logging category for libinput 2015-07-31 12:43:35 +02:00