mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-31 00:50:57 +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 {
|
impl WlrootsConsumer {
|
||||||
pub fn new() -> Result<Self> {
|
pub fn new() -> Result<Self> {
|
||||||
let conn = Connection::connect_to_env().unwrap();
|
let conn = Connection::connect_to_env()?;
|
||||||
let (globals, queue) = registry_queue_init::<State>(&conn).unwrap();
|
let (globals, queue) = registry_queue_init::<State>(&conn)?;
|
||||||
let qh = queue.handle();
|
let qh = queue.handle();
|
||||||
|
|
||||||
let seat: wl_seat::WlSeat = match globals.bind(&qh, 7..=8, ()) {
|
let seat: wl_seat::WlSeat = match globals.bind(&qh, 7..=8, ()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user