diff --git a/src/input/mod.rs b/src/input/mod.rs index 28877356..8730e66b 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1598,15 +1598,7 @@ impl State { std::mem::drop(shell); let pointer = seat.get_pointer().unwrap(); - pointer.motion( - self, - under.clone(), - &PointerMotionEvent { - location: position.as_logical(), - serial: SERIAL_COUNTER.next_serial(), - time: InputTime::now(), - }, - ); + pointer.set_location(position.as_logical()); let tablet_seat = seat.tablet_seat(); @@ -1686,15 +1678,7 @@ impl State { std::mem::drop(shell); let pointer = seat.get_pointer().unwrap(); - pointer.motion( - self, - under.clone(), - &PointerMotionEvent { - location: position.as_logical(), - serial: SERIAL_COUNTER.next_serial(), - time: InputTime::now(), - }, - ); + pointer.set_location(position.as_logical()); let tablet_seat = seat.tablet_seat();