Skip to content

Commit

Permalink
dont panic on unavailable compositor
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Dec 17, 2023
1 parent f5a0ff4 commit 06c4e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/consumer/wlroots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ pub(crate) struct WlrootsConsumer {

impl WlrootsConsumer {
pub fn new() -> Result<Self> {
let conn = Connection::connect_to_env().unwrap();
let (globals, queue) = registry_queue_init::<State>(&conn).unwrap();
let conn = Connection::connect_to_env()?;
let (globals, queue) = registry_queue_init::<State>(&conn)?;
let qh = queue.handle();

let seat: wl_seat::WlSeat = match globals.bind(&qh, 7..=8, ()) {
Expand Down

0 comments on commit 06c4e92

Please sign in to comment.