From 0e46b00a0cef66323e828bf339d57cc1afc3c6fd Mon Sep 17 00:00:00 2001 From: timokoesters Date: Wed, 8 May 2019 22:15:58 +0200 Subject: [PATCH] Minor fixes Former-commit-id: 9c5e90e2bad24e9b5c443bfb1509b18877adf2d6 --- voxygen/src/hud/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 6eb2b0910e..cd1828b4e7 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -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 {