aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/mod.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs
index f7d94ed0..0b3d19b6 100644
--- a/src/handlers/mod.rs
+++ b/src/handlers/mod.rs
@@ -9,7 +9,6 @@ use std::sync::Arc;
use std::thread;
use smithay::backend::allocator::dmabuf::Dmabuf;
-use smithay::backend::renderer::ImportDma;
use smithay::desktop::{PopupKind, PopupManager};
use smithay::input::pointer::{CursorIcon, CursorImageStatus, PointerHandle};
use smithay::input::{Seat, SeatHandler, SeatState};
@@ -202,17 +201,11 @@ impl DmabufHandler for State {
dmabuf: Dmabuf,
notifier: ImportNotifier,
) {
- let Some(renderer) = self.backend.renderer() else {
- notifier.failed();
- return;
- };
-
- match renderer.import_dmabuf(&dmabuf, None) {
- Ok(_texture) => {
+ match self.backend.import_dmabuf(&dmabuf) {
+ Ok(_) => {
let _ = notifier.successful::<State>();
}
- Err(err) => {
- debug!("error importing dmabuf: {err:?}");
+ Err(_) => {
notifier.failed();
}
}