delete scroll-boost patch

This commit is contained in:
Sean Buckley 2022-12-05 22:50:32 -05:00
parent 41abe496b0
commit 1a3814680b
2 changed files with 0 additions and 32 deletions

View file

@ -1,20 +0,0 @@
{ config, lib, ... }:
let
cfg = config.sconfig.scroll-boost;
in
{
options.sconfig.scroll-boost = lib.mkEnableOption "Patch xf86-libinput scroll speed";
config = lib.mkIf cfg {
nixpkgs.overlays = [
(self: super: {
xorg = super.xorg.overrideScope' (selfB: superB: {
inherit (super.xorg) xlibsWrapper;
xf86inputlibinput = superB.xf86inputlibinput.overrideAttrs (attr: {
patches = [ ./libinput.patch ];
});
});
})
];
};
}

View file

@ -1,12 +0,0 @@
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 620af6d..d1bf974 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -1618,6 +1618,7 @@ calculate_axis_value(struct xf86libinput *driver_data,
source = libinput_event_pointer_get_axis_source(event);
if (source == LIBINPUT_POINTER_AXIS_SOURCE_WHEEL) {
value = get_wheel_scroll_value(driver_data, event, axis);
+ value *= 2;
} else {
value = libinput_event_pointer_get_axis_value(event, axis);
}