1
0
Fork 0
forked from wry/wry

ipc: make source/offer ids type safe

This commit is contained in:
Julian Orth 2024-03-30 20:51:25 +01:00
parent 00efe7b51b
commit 7cbe5720c6
8 changed files with 27 additions and 27 deletions

View file

@ -715,7 +715,7 @@ impl WlSeatGlobal {
src: Option<Rc<T::Source>>,
) -> Result<(), WlSeatError> {
if let (Some(new), Some(old)) = (&src, &field.get()) {
if T::source_eq(old, new) {
if T::get_source_data(new).id == T::get_source_data(old).id {
return Ok(());
}
}