mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-03 22:22:08 +00:00 
			
		
		
		
	[client] app: add option to disable the waiting for host message
This commit is contained in:
		
							
								
								
									
										1
									
								
								AUTHORS
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								AUTHORS
									
									
									
									
									
								
							@@ -71,3 +71,4 @@ Kamplom <6284968128@protonmail.ch> (kamplom)
 | 
			
		||||
Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee)
 | 
			
		||||
Marco Antonio J. Costa <marco.antonio.costa@gmail.com> (majcosta)
 | 
			
		||||
rs189 <35667100+rs189@users.noreply.github.com> (rs189)
 | 
			
		||||
Marco Rodolfi <marco.rodolfi@tuta.io> (RodoMa92)
 | 
			
		||||
@@ -309,6 +309,13 @@ static struct Option options[] =
 | 
			
		||||
    .type           = OPTION_TYPE_BOOL,
 | 
			
		||||
    .value.x_bool   = true
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    .module         = "win",
 | 
			
		||||
    .name           = "disableWaitingMessage",
 | 
			
		||||
    .description    = "Disable the waiting for host message during startup",
 | 
			
		||||
    .type           = OPTION_TYPE_BOOL,
 | 
			
		||||
    .value.x_bool   = false
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  // input options
 | 
			
		||||
  {
 | 
			
		||||
@@ -678,6 +685,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)
 | 
			
		||||
  {
 | 
			
		||||
 
 | 
			
		||||
@@ -1497,6 +1497,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"
 | 
			
		||||
@@ -1509,6 +1511,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...");
 | 
			
		||||
 
 | 
			
		||||
@@ -202,6 +202,7 @@ struct AppParams
 | 
			
		||||
  int                  uiSize;
 | 
			
		||||
  bool                 jitRender;
 | 
			
		||||
  bool                 requestActivation;
 | 
			
		||||
  bool                 disableWaitingMessage;
 | 
			
		||||
 | 
			
		||||
  unsigned int         cursorPollInterval;
 | 
			
		||||
  unsigned int         framePollInterval;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user