ipc: make source/offer ids type safe
This commit is contained in:
parent
00efe7b51b
commit
7cbe5720c6
8 changed files with 27 additions and 27 deletions
|
|
@ -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(());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue