Removed additional dubious unwraps

The wl_keyboard Enter event, wl_keyboard Leave event, the wl_touch
Self::Down event and the ServerState::reconfigure_window function had
similar uses of `unwrap` which appear to not consider the distinct
query preparation and query execution stages.
This commit is contained in:
En-En 2025-06-22 22:09:39 +00:00 committed by Supreeeme
parent da3b2838d2
commit 8dc4538662
2 changed files with 39 additions and 29 deletions

View file

@ -736,8 +736,10 @@ impl<C: XConnection> ServerState<C> {
debug!("not reconfiguring unknown window {:?}", event.window());
return;
};
let mut win = data.get::<&mut WindowData>().unwrap();
let Some(mut win) = data.get::<&mut WindowData>() else {
debug!("not reconfiguring unknown window {:?}", event.window());
return;
};
let dims = WindowDims {
x: event.x(),