From e21ab02a6e752d39ddcf73ceb9c8e5e50d014923 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Sat, 4 May 2024 01:26:12 +0200 Subject: [PATCH] layer-shell: use value120 scroll events #115 --- src/capture/wayland.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/capture/wayland.rs b/src/capture/wayland.rs index 782a018..eaa1526 100644 --- a/src/capture/wayland.rs +++ b/src/capture/wayland.rs @@ -750,14 +750,14 @@ impl Dispatch for State { }), )); } - wl_pointer::Event::Axis { time, axis, value } => { + wl_pointer::Event::AxisValue120 { axis, value120 } => { let (_, client) = app.focused.as_ref().unwrap(); app.pending_events.push_back(( *client, Event::Pointer(PointerEvent::Axis { - time, + time: 0, axis: u32::from(axis) as u8, - value, + value: value120 as f64, }), )); }