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:
parent
c1acf0c1aa
commit
70d6c415a1
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue