Replace hard panic with Err on failed seat binding

This commit is contained in:
SparkyTD 2026-06-30 11:54:00 +02:00
parent ea8710b2f4
commit e2ecc7884e
1 changed files with 1 additions and 1 deletions

View File

@ -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, ())