From b9a6742ee6b36f106d7f5c2b5b8d0fbd35b7d85a Mon Sep 17 00:00:00 2001 From: Imbris Date: Fri, 3 Feb 2023 00:26:49 -0500 Subject: [PATCH] Fix cursor not hiding when closing bag while both the bag and crafting window are displayed by delaying the want_grab calculation to after the crafting window is hidden --- voxygen/src/hud/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index af66117b34..4e0a5aaf89 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -899,12 +899,12 @@ impl Show { if !self.esc_menu { self.bag = open; self.map = false; - self.want_grab = !self.any_window_requires_cursor(); self.crafting_fields.salvage = false; - if !open { self.crafting = false; } + + self.want_grab = !self.any_window_requires_cursor(); } }