forge
Explore
Log in

Don't you dare go Hollow

input: Don't use fully-qualified calls

Browse files at this commit

9b4a8fed4f1df129d282cc379e44771278ea13c1Ivan MolodetskikhParent: 1947a77
src/input.rsmodified+8 -10
@@ -2,10 +2,10 @@ use std::process::Command;
2 2
3 use smithay::backend::input::{3 use smithay::backend::input::{
4 AbsolutePositionEvent, Axis, AxisSource, ButtonState, Device, DeviceCapability, Event,4 AbsolutePositionEvent, Axis, AxisSource, ButtonState, Device, DeviceCapability, Event,
5- GestureBeginEvent, GestureEndEvent, InputBackend, InputEvent, KeyState, KeyboardKeyEvent,5+ GestureBeginEvent, GestureEndEvent, GesturePinchUpdateEvent as _, GestureSwipeUpdateEvent as _,
6- PointerAxisEvent, PointerButtonEvent, PointerMotionEvent, ProximityState,6+ InputBackend, InputEvent, KeyState, KeyboardKeyEvent, PointerAxisEvent, PointerButtonEvent,
7- TabletToolButtonEvent, TabletToolEvent, TabletToolProximityEvent, TabletToolTipEvent,7+ PointerMotionEvent, ProximityState, TabletToolButtonEvent, TabletToolEvent,
8- TabletToolTipState,8+ TabletToolProximityEvent, TabletToolTipEvent, TabletToolTipState,
9 };9 };
10 use smithay::backend::libinput::LibinputInputBackend;10 use smithay::backend::libinput::LibinputInputBackend;
11 use smithay::input::keyboard::{keysyms, FilterResult, KeysymHandle, ModifiersState};11 use smithay::input::keyboard::{keysyms, FilterResult, KeysymHandle, ModifiersState};
@@ -650,7 +650,7 @@ impl State {
650 self,650 self,
651 &GestureSwipeUpdateEvent {651 &GestureSwipeUpdateEvent {
652 time: event.time_msec(),652 time: event.time_msec(),
653- delta: smithay::backend::input::GestureSwipeUpdateEvent::delta(&event),653+ delta: event.delta(),
654 },654 },
655 );655 );
656 }656 }
@@ -684,11 +684,9 @@ impl State {
684 self,684 self,
685 &GesturePinchUpdateEvent {685 &GesturePinchUpdateEvent {
686 time: event.time_msec(),686 time: event.time_msec(),
687- delta: smithay::backend::input::GesturePinchUpdateEvent::delta(&event),687+ delta: event.delta(),
688- scale: smithay::backend::input::GesturePinchUpdateEvent::scale(&event),688+ scale: event.scale(),
689- rotation: smithay::backend::input::GesturePinchUpdateEvent::rotation(689+ rotation: event.rotation(),
690- &event,
691- ),
692 },690 },
693 );691 );
694 }692 }