Minor fixes

Former-commit-id: 9c5e90e2bad24e9b5c443bfb1509b18877adf2d6
This commit is contained in:
timokoesters 2019-05-08 22:15:58 +02:00
parent a15532f81a
commit 0e46b00a0c

View File

@ -534,11 +534,11 @@ impl Hud {
_ => false,
};
// Handle cursor grab
if let Some(state) = self.show.want_grab {
if let Some(state) = self.show.want_grab.take() {
global_state.window.grab_cursor(state);
self.show.want_grab = None;
}
return handled;
handled
}
pub fn maintain(&mut self, renderer: &mut Renderer, tps: f64) -> Vec<Event> {