1
0
Fork 0
forked from wry/wry

wayland: add times to all input events

This commit is contained in:
Julian Orth 2022-05-26 12:25:59 +02:00
parent 568341a3d0
commit 145e4dbc24
16 changed files with 235 additions and 101 deletions

View file

@ -115,11 +115,11 @@ impl WlDataDevice {
}
}
pub fn send_motion(&self, x: Fixed, y: Fixed) {
pub fn send_motion(&self, time_usec: u64, x: Fixed, y: Fixed) {
if !self.data.is_xwm {
self.client.event(Motion {
self_id: self.id,
time: 0,
time: (time_usec / 1000) as _,
x,
y,
})