code cleanup

This commit is contained in:
Ferdinand Schober
2024-07-09 16:39:20 +02:00
parent 703465a370
commit 09b2db50c0
19 changed files with 607 additions and 716 deletions

View File

@@ -440,8 +440,8 @@ async fn handle_ei_event(
EiEvent::PointerMotion(motion) => {
let motion_event = PointerEvent::Motion {
time: motion.time as u32,
relative_x: motion.dx as f64,
relative_y: motion.dy as f64,
dx: motion.dx as f64,
dy: motion.dy as f64,
};
if let Some(current_client) = current_client {
event_tx

View File

@@ -849,8 +849,8 @@ impl Dispatch<ZwpRelativePointerV1, ()> for State {
*client,
Event::Pointer(PointerEvent::Motion {
time,
relative_x: surface_x,
relative_y: surface_y,
dx: surface_x,
dy: surface_y,
}),
));
}