mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Minor fixes
Former-commit-id: 9c5e90e2bad24e9b5c443bfb1509b18877adf2d6
This commit is contained in:
parent
a15532f81a
commit
0e46b00a0c
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user