[Differential] [Request, 79 lines] D1545: [libinput] Support toggleTouchpad

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Fri May 6 10:34:17 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160506/c1909705/attachment.html>


More information about the Plasma-devel mailing list