mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[client] fixed attempt to send input message before connected
This commit is contained in:
		@@ -367,18 +367,18 @@ bool spice_on_main_channel_read()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    spice.sessionID = msg.session_id;
 | 
					    spice.sessionID = msg.session_id;
 | 
				
			||||||
    if (msg.current_mouse_mode != SPICE_MOUSE_MODE_CLIENT && !spice_mouse_mode(false))
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
      DEBUG_ERROR("failed to set mouse mode");
 | 
					 | 
				
			||||||
      return false;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (!spice_connect_channel(&spice.scInputs))
 | 
					    if (!spice_connect_channel(&spice.scInputs))
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      DEBUG_ERROR("failed to connect inputs channel");
 | 
					      DEBUG_ERROR("failed to connect inputs channel");
 | 
				
			||||||
      return false;
 | 
					      return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (msg.current_mouse_mode != SPICE_MOUSE_MODE_CLIENT && !spice_mouse_mode(false))
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      DEBUG_ERROR("failed to set mouse mode");
 | 
				
			||||||
 | 
					      return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user