mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
delete scroll-boost patch
This commit is contained in:
parent
41abe496b0
commit
1a3814680b
2 changed files with 0 additions and 32 deletions
|
@ -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 ];
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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);
|
|
||||||
}
|
|
Loading…
Reference in a new issue