[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.
This commit is contained in:
Geoffrey McRae 2021-05-28 19:32:26 +10:00
parent e6ed5574d5
commit 77c2b895c6

View File

@ -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;
}