From 5f5a43fd54d993702dc2e5076cd855e0022c22b6 Mon Sep 17 00:00:00 2001 From: iLostName <55976057+iLostName@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:47:50 +0100 Subject: [PATCH] focus loss doesn't open the pause menu over the pack prompt or a server dialog --- crates/horizon-client/src/game.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index a5bc46929..2f670df64 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -12026,13 +12026,16 @@ impl ApplicationHandler for Game<'_> { self.left = false; self.right = false; self.capture(false); - // Screens (books, signs) stay open instead of pausing. + // Gui.setPauseScreen: an open screen (books, signs, the + // pack prompt, a server dialog) stays instead of pausing. if self.screen == Screen::Playing && self.player.is_some() && !self.options.no_pause && self.settings.file.bool("pauseOnLostFocus") && self.book.is_none() && self.sign_edit.is_none() + && self.server_packs.prompt.is_none() + && !self.dialog_open() { self.screen = Screen::Paused; }