From e2ecc7884edb2e48c696353e9e999a93231b53e8 Mon Sep 17 00:00:00 2001 From: SparkyTD Date: Tue, 30 Jun 2026 11:54:00 +0200 Subject: [PATCH] Replace hard panic with Err on failed seat binding --- wayvr/src/subsystem/hid/provider/wl_virtual.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayvr/src/subsystem/hid/provider/wl_virtual.rs b/wayvr/src/subsystem/hid/provider/wl_virtual.rs index 6bdcecb5..678684f9 100644 --- a/wayvr/src/subsystem/hid/provider/wl_virtual.rs +++ b/wayvr/src/subsystem/hid/provider/wl_virtual.rs @@ -186,7 +186,7 @@ impl WlVirtualProvider { let qh = queue.handle(); let seat: WlSeat = globals .bind(&qh, 4..=9, ()) - .unwrap_or_else(|_| panic!("{}", WlSeat::interface().name)); + .context("compositor doesn't expose a compatible wl_seat (version 4..=9)")?; let pointer_manager: ZwlrVirtualPointerManagerV1 = globals .bind(&qh, 1..=1, ())