From 65303684f4600f4fae0cc5cc8cae1b7a37fbd669 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Tue, 9 Jul 2024 19:00:17 +0200 Subject: [PATCH] simplify --- input-capture/src/wayland.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/input-capture/src/wayland.rs b/input-capture/src/wayland.rs index b349238..22368cf 100644 --- a/input-capture/src/wayland.rs +++ b/input-capture/src/wayland.rs @@ -837,21 +837,16 @@ impl Dispatch for State { if let zwp_relative_pointer_v1::Event::RelativeMotion { utime_hi, utime_lo, - dx: _, - dy: _, - dx_unaccel: surface_x, - dy_unaccel: surface_y, + dx_unaccel: dx, + dy_unaccel: dy, + .. } = event { if let Some((_window, client)) = &app.focused { let time = (((utime_hi as u64) << 32 | utime_lo as u64) / 1000) as u32; app.pending_events.push_back(( *client, - Event::Pointer(PointerEvent::Motion { - time, - dx: surface_x, - dy: surface_y, - }), + Event::Pointer(PointerEvent::Motion { time, dx, dy }), )); } }