Skip to content

Instantly share code, notes, and snippets.

@tadeokondrak
Last active September 2, 2021 00:25
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadeokondrak/d4bd1aeacb399127ec69de45b2b202ad to your computer and use it in GitHub Desktop.
Save tadeokondrak/d4bd1aeacb399127ec69de45b2b202ad to your computer and use it in GitHub Desktop.
Patch to disable tablet smoothing in libinput (https://gitlab.freedesktop.org/libinput/libinput/issues/225)
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -741,7 +741,6 @@ out:
}
tablet_history_push(tablet, &tablet->axes);
- tablet_smoothen_axes(tablet, &axes);
/* The delta relies on the last *smooth* point, so we do it last */
axes.delta = tablet_tool_process_delta(tablet, tool, device, &axes, time);
--- a/src/filter-tablet.c
+++ b/src/filter-tablet.c
@@ -97,6 +97,7 @@ tablet_accelerator_filter_flat(struct motion_filter *filter,
const struct device_float_coords *units,
void *data, uint64_t time)
{
+ return *(struct normalized_coords *)units;
struct tablet_accelerator_flat *accel_filter =
(struct tablet_accelerator_flat *)filter;
struct libinput_tablet_tool *tool = (struct libinput_tablet_tool*)data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment