mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[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:
parent
e6ed5574d5
commit
77c2b895c6
@ -68,7 +68,7 @@ void app_handleFocusEvent(bool focused)
|
|||||||
g_state.focused = focused;
|
g_state.focused = focused;
|
||||||
if (!core_inputEnabled())
|
if (!core_inputEnabled())
|
||||||
{
|
{
|
||||||
if (!focused && g_params.minimizeOnFocusLoss)
|
if (!focused && g_params.minimizeOnFocusLoss && app_getFullscreen())
|
||||||
g_state.ds->minimize();
|
g_state.ds->minimize();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user