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:
parent
da3b2838d2
commit
8dc4538662
2 changed files with 39 additions and 29 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue