mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
dont panic on unavailable compositor
This commit is contained in:
committed by
Ferdinand Schober
parent
f5a0ff4f3a
commit
06c4e92d43
@@ -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, ()) {
|
||||
|
||||
Reference in New Issue
Block a user