From 77c2b895c64f395671cfe88483be3b06f7b63783 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 28 May 2021 19:32:26 +1000 Subject: [PATCH] [client] app: only minimize if lost focus when in full screen mode This fixes a regression caused by the move from SDL2 which handled this itself. We should only minimize when focus is lost if the application was in full screen mode. --- client/src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app.c b/client/src/app.c index 443fa539..031c488d 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -68,7 +68,7 @@ void app_handleFocusEvent(bool focused) g_state.focused = focused; if (!core_inputEnabled()) { - if (!focused && g_params.minimizeOnFocusLoss) + if (!focused && g_params.minimizeOnFocusLoss && app_getFullscreen()) g_state.ds->minimize(); return; }