fix(wayland): account for surface data map panic
This commit is contained in:
@@ -146,9 +146,15 @@ impl Wayland {
|
||||
let time_ms = (sk.time_getf() * 1000.) as u64;
|
||||
|
||||
for core_surface in CORE_SURFACES.get_valid_contents() {
|
||||
let client_id = core_surface.wl_surface().client().unwrap().id();
|
||||
let client_id = match core_surface.wl_surface().client() {
|
||||
Some(client) => client.id(),
|
||||
None => continue,
|
||||
};
|
||||
let state = self.state.lock();
|
||||
let seat_data = state.seats.get(&client_id).unwrap().clone();
|
||||
let seat_data = match state.seats.get(&client_id) {
|
||||
Some(seat_data) => seat_data.clone(),
|
||||
None => continue,
|
||||
};
|
||||
let output = state.output.clone();
|
||||
core_surface.process(
|
||||
sk,
|
||||
|
||||
Reference in New Issue
Block a user