1
0
Fork 0
forked from wry/wry

all: track serials as u64 internally

This commit is contained in:
Julian Orth 2024-10-17 15:20:46 +02:00
parent 437c6b0596
commit c987fdb58d
28 changed files with 123 additions and 119 deletions

View file

@ -24,10 +24,10 @@ impl ZwpPointerGesturePinchV1 {
self.seat.pinch_bindings.remove(&self.client, self);
}
pub fn send_pinch_begin(&self, n: &WlSurface, serial: u32, time_usec: u64, finger_count: u32) {
pub fn send_pinch_begin(&self, n: &WlSurface, serial: u64, time_usec: u64, finger_count: u32) {
self.client.event(Begin {
self_id: self.id,
serial,
serial: serial as _,
time: (time_usec / 1000) as u32,
surface: n.id,
fingers: finger_count,
@ -52,10 +52,10 @@ impl ZwpPointerGesturePinchV1 {
});
}
pub fn send_pinch_end(&self, serial: u32, time_usec: u64, cancelled: bool) {
pub fn send_pinch_end(&self, serial: u64, time_usec: u64, cancelled: bool) {
self.client.event(End {
self_id: self.id,
serial,
serial: serial as _,
time: (time_usec / 1000) as u32,
cancelled: cancelled as _,
});