Skip to content

Commit

Permalink
ModelTabletModeNoSuspend=1 is currently only honored for keyboards, b…
Browse files Browse the repository at this point in the history
…ut not touchpads. This commit changes that.

(cherry picked from commit f9ec9b8)
  • Loading branch information
Thomas Sailer authored and whot committed Jan 7, 2019
1 parent bb07025 commit c730840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/evdev-mt-touchpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,10 @@ tp_pair_tablet_mode_switch(struct evdev_device *touchpad,
if (touchpad->tags & EVDEV_TAG_EXTERNAL_TOUCHPAD)
return;

if (evdev_device_has_model_quirk(touchpad,
QUIRK_MODEL_TABLET_MODE_NO_SUSPEND))
return;

evdev_log_debug(touchpad,
"tablet_mode_switch: activated for %s<->%s\n",
touchpad->devname,
Expand Down

0 comments on commit c730840

Please sign in to comment.