libinput/SOURCES/0001-ModelTabletModeNoSuspend-1-is-currently-only-honored.patch
2021-09-09 20:23:05 +00:00

29 lines
886 B
Diff

From f9ec9b8f8d9e4ae18f9b8b3d7d602563eb0960e7 Mon Sep 17 00:00:00 2001
From: Thomas Sailer <t.sailer@alumni.ethz.ch>
Date: Thu, 3 Jan 2019 02:22:21 +0100
Subject: [PATCH libinput] ModelTabletModeNoSuspend=1 is currently only honored
for keyboards, but not touchpads. This commit changes that.
---
src/evdev-mt-touchpad.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index b1a3632f5..650a193e7 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -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,
--
2.19.2