Don't panic if dmabuf global isn't present

Fixes support for cosmic-workspaces with shm capture with no hardware
accelerated graphics present.
This commit is contained in:
Ian Douglas Scott 2024-08-05 15:08:19 -07:00 committed by Ian Douglas Scott
parent c1acf0c1aa
commit 70d6c415a1

View file

@ -198,7 +198,9 @@ fn start(conn: Connection) -> mpsc::Receiver<Event> {
let qh = event_queue.handle();
let dmabuf_state = DmabufState::new(&globals, &qh);
dmabuf_state.get_default_feedback(&qh).unwrap();
if let Err(err) = dmabuf_state.get_default_feedback(&qh) {
log::warn!("dmabuf feedback not supported, only shm: {}", err);
}
thread::spawn(move || {
let (executor, scheduler) = calloop::futures::executor().unwrap();