summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-01-15 19:02:22 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2024-01-30 14:29:25 +1000
commit47f0bce7ec269190e8c15eff4b89bdaee619a8e5 (patch)
tree05f8b53c7b04ec6a9f93a16378b9310987ad1051
parent54aa01a267fef06ff5ea7799d8638970747f3fbe (diff)
tablet: document a known bug about pressure thresholds across tablets
-rw-r--r--src/evdev-tablet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 4f4746dd..d3b6f825 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -1141,6 +1141,11 @@ tablet_new_tool(struct tablet_dispatch *tablet,
.refcount = 1,
};
+ /* FIXME: known bug - the pressure threshold is only set once on the
+ * first tablet, if a tool is used across multiple tablets with
+ * different pressure ranges this will be wrong. This case is niche
+ * enough that we can fix it if we ever run into it.
+ */
tool_set_pressure_thresholds(tablet, tool);
tool_set_bits(tablet, tool);