[client] app: add option to disable waiting for host message

This commit is contained in:
Marco Rodolfi 2025-06-28 17:10:31 +02:00 committed by Geoffrey McRae
parent f15d72cdfe
commit add45347b5
3 changed files with 49 additions and 37 deletions

View File

@ -317,6 +317,13 @@ static struct Option options[] =
.type = OPTION_TYPE_BOOL,
.value.x_bool = true
},
{
.module = "win",
.name = "disableWaitingMessage",
.description = "Disables the confirmation message for a cleaner UI",
.type = OPTION_TYPE_BOOL,
.value.x_bool = false
},
// input options
{
@ -686,6 +693,7 @@ bool config_load(int argc, char * argv[])
g_params.uiSize = option_get_int ("win", "uiSize" );
g_params.jitRender = option_get_bool ("win", "jitRender" );
g_params.requestActivation = option_get_bool ("win", "requestActivation" );
g_params.disableWaitingMessage = option_get_bool ("win", "disableWaitingMessage");
if (g_params.noScreensaver && g_params.autoScreensaver)
{

View File

@ -1500,6 +1500,8 @@ restart:
if (waitCount == 30)
{
DEBUG_BREAK();
if (!g_params.disableWaitingMessage)
{
msgs[msgsCount++] = app_msgBox(
"Host Application Not Running",
"It seems the host application is not running or your\n"
@ -1512,6 +1514,7 @@ restart:
"Continuing to wait...");
msgs[msgsCount++] = showSpiceInputHelp();
}
DEBUG_INFO("Check the host log in your guest at %%ProgramData%%\\Looking Glass (host)\\looking-glass-host.txt");
DEBUG_INFO("Continuing to wait...");

View File

@ -204,6 +204,7 @@ struct AppParams
int uiSize;
bool jitRender;
bool requestActivation;
bool disableWaitingMessage;
unsigned int cursorPollInterval;
unsigned int framePollInterval;