fix(wayland): account for surface data map panic

This commit is contained in:
Nova
2022-11-09 11:02:48 -05:00
parent e2b00f23ee
commit 6b578fe044
4 changed files with 22 additions and 7 deletions

View File

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