From 037fcfe5da0834a6af86507f56f01c302dff95ff Mon Sep 17 00:00:00 2001 From: timokoesters <timo@koesters.xyz> Date: Fri, 7 Jun 2019 22:23:06 +0200 Subject: [PATCH] Ungrab mouse when closing settings with X --- voxygen/src/hud/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 992c0afd7c..71e76b92ba 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -566,7 +566,7 @@ impl Hud { } settings_window::Event::ToggleDebug => self.show.debug = !self.show.debug, settings_window::Event::ChangeTab(tab) => self.show.open_setting_tab(tab), - settings_window::Event::Close => self.show.open_windows = Windows::None, + settings_window::Event::Close => self.show.settings(false), settings_window::Event::AdjustViewDistance(view_distance) => { events.push(Event::AdjustViewDistance(view_distance)); }