chore: clippy fixes
This commit is contained in:
parent
057e7b72cc
commit
0f56d214b9
7 changed files with 66 additions and 72 deletions
|
|
@ -105,19 +105,17 @@ impl TabletToolGrab<State> for PointerEmulationGrab {
|
|||
InputTime::now(),
|
||||
true,
|
||||
);
|
||||
} else {
|
||||
if let Some(pointer) = self.seat.get_pointer() {
|
||||
pointer.motion(
|
||||
data,
|
||||
focus,
|
||||
&pointer::MotionEvent {
|
||||
location: event.location,
|
||||
serial: SERIAL_COUNTER.next_serial(),
|
||||
time: InputTime::now(),
|
||||
},
|
||||
);
|
||||
pointer.frame(data);
|
||||
}
|
||||
} else if let Some(pointer) = self.seat.get_pointer() {
|
||||
pointer.motion(
|
||||
data,
|
||||
focus,
|
||||
&pointer::MotionEvent {
|
||||
location: event.location,
|
||||
serial: SERIAL_COUNTER.next_serial(),
|
||||
time: InputTime::now(),
|
||||
},
|
||||
);
|
||||
pointer.frame(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -179,19 +177,17 @@ impl TabletToolGrab<State> for PointerEmulationGrab {
|
|||
InputTime::now(),
|
||||
true,
|
||||
);
|
||||
} else {
|
||||
if let Some(pointer) = self.seat.get_pointer() {
|
||||
pointer.motion(
|
||||
data,
|
||||
focus,
|
||||
&pointer::MotionEvent {
|
||||
location: event.location,
|
||||
serial: SERIAL_COUNTER.next_serial(),
|
||||
time: InputTime::now(),
|
||||
},
|
||||
);
|
||||
pointer.frame(data);
|
||||
}
|
||||
} else if let Some(pointer) = self.seat.get_pointer() {
|
||||
pointer.motion(
|
||||
data,
|
||||
focus,
|
||||
&pointer::MotionEvent {
|
||||
location: event.location,
|
||||
serial: SERIAL_COUNTER.next_serial(),
|
||||
time: InputTime::now(),
|
||||
},
|
||||
);
|
||||
pointer.frame(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue