1
0
Fork 0
forked from wry/wry

ei: implement ei_touchscreen v2

This commit is contained in:
Julian Orth 2024-11-27 13:15:56 +01:00
parent 1495cc1f22
commit f27e4253a1
6 changed files with 43 additions and 5 deletions

View file

@ -761,9 +761,9 @@ impl WlSeatGlobal {
self.touch_owner.motion(self, time_usec, id, x, y);
}
fn touch_cancel(self: &Rc<Self>, time_usec: u64, id: i32) {
pub fn touch_cancel(self: &Rc<Self>, time_usec: u64, id: i32) {
self.for_each_ei_seat(|ei_seat| {
ei_seat.handle_touch_up(id as _);
ei_seat.handle_touch_cancel(id as _);
});
self.state.for_each_seat_tester(|t| {
t.send_touch_cancel(self.id, time_usec, id);