Somehow when updating to this API, I missed the call to `successful`. This doesn't seem to make a difference for most clients since `create_immed` is normally used. But should correct anything using `create`.
29 lines
729 B
Rust
29 lines
729 B
Rust
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use crate::state::State;
|
|
use smithay::{
|
|
backend::allocator::dmabuf::Dmabuf,
|
|
delegate_dmabuf,
|
|
wayland::dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier},
|
|
};
|
|
|
|
impl DmabufHandler for State {
|
|
fn dmabuf_state(&mut self) -> &mut DmabufState {
|
|
&mut self.common.dmabuf_state
|
|
}
|
|
|
|
fn dmabuf_imported(
|
|
&mut self,
|
|
global: &DmabufGlobal,
|
|
dmabuf: Dmabuf,
|
|
import_notifier: ImportNotifier,
|
|
) {
|
|
if self.backend.dmabuf_imported(global, dmabuf).is_err() {
|
|
import_notifier.failed();
|
|
} else {
|
|
let _ = import_notifier.successful::<State>();
|
|
}
|
|
}
|
|
}
|
|
|
|
delegate_dmabuf!(State);
|