From 31d62f77ee990f1b3adf094562e8508559ed54ff Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Sun, 20 Jul 2025 22:41:51 +0200 Subject: [PATCH] Set the selected window to null in toggleGameMenu This caused a bug when pressing escape instead of left-click to return to the game. fixes #1691 fixes #1655 --- src/gui/gui.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/gui.zig b/src/gui/gui.zig index a1b4ea18..5784fe15 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -580,6 +580,7 @@ pub fn toggleGameMenu() void { } } reorderWindows = false; + selectedWindow = null; } }