Skip to content

Commit

Permalink
fix(wayland): touches not being properly released
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Jul 5, 2024
1 parent a7df6d8 commit 7ff470e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/wayland/seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)
}
}
}
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 7ff470e

Please sign in to comment.