graesslin created this revision. graesslin added a reviewer: Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION 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. This is a hard coded key and not mapped to a global shortcut (maybe it should?). 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 REPOSITORY rKWIN KWin BRANCH toggle-touchpad REVISION DETAIL https://phabricator.kde.org/D1545 AFFECTED FILES input.cpp libinput/connection.cpp libinput/connection.h libinput/device.cpp libinput/device.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, Plasma Cc: plasma-devel, sebas
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel