From 1035f3e6cd4e9c530451f29d1903f43530b85df0 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 9 Aug 2023 17:51:02 +0400 Subject: Pass new pointer location to pointer.motion() This is correct, it was a bug in smallvil. --- src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index b7b1959b..c10f3e15 100644 --- a/src/input.rs +++ b/src/input.rs @@ -69,7 +69,7 @@ impl Niri { pointer_location.x = pointer_location.x.clamp(0., output_geo.size.w as f64); pointer_location.y = pointer_location.y.clamp(0., output_geo.size.h as f64); - let under = self.surface_under_pointer(&pointer); + let under = self.surface_under(pointer_location); pointer.motion( self, under.clone(), @@ -101,7 +101,7 @@ impl Niri { let pointer = self.seat.get_pointer().unwrap(); - let under = self.surface_under_pointer(&pointer); + let under = self.surface_under(pos); pointer.motion( self, -- cgit