Last active
September 2, 2021 00:25
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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