From 7ff470e1db7835155a83764daaa9c4756a56d96d Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 4 Jul 2024 20:37:52 -0400 Subject: [PATCH] fix(wayland): touches not being properly released --- src/wayland/seat.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/wayland/seat.rs b/src/wayland/seat.rs index 96dfea2..4daa839 100644 --- a/src/wayland/seat.rs +++ b/src/wayland/seat.rs @@ -124,18 +124,9 @@ impl SeatWrapper { if keyboard.current_focus() == Some(surface.clone()) { keyboard.set_focus(state, None, SERIAL_COUNTER.next_serial()); } - let touch = self.seat.get_touch().unwrap(); for (id, touch_surface) in self.touches.lock().iter() { if touch_surface.id() == surface.id() { self.touch_up(*id); - touch.up( - state, - &UpEvent { - slot: Some(*id).into(), - serial: SERIAL_COUNTER.next_serial(), - time: 0, - }, - ) } } } @@ -307,6 +298,7 @@ impl SeatWrapper { time: 0, }, ); + touch.frame(&mut state.lock()); } pub fn reset_input(&self) { for id in self.touches.lock().keys() {