mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-03 22:22:08 +00:00 
			
		
		
		
	[client] spice: fix input:grabKeyboardOnFocus
It appears that the keyboard should only be grabbed if the client is focused and the cursor is in the view. However, the relevant logic was missing from core_setCursorInView, and the keyboard was never actually grabbed. This commit adds the call to g_state.ds->grabKeyboard(), allowing grabbing to work.
This commit is contained in:
		@@ -69,6 +69,9 @@ void core_setCursorInView(bool enable)
 | 
			
		||||
 | 
			
		||||
    if (warpSupport && !g_params.captureInputOnly)
 | 
			
		||||
      g_state.ds->grabPointer();
 | 
			
		||||
 | 
			
		||||
    if (g_params.grabKeyboardOnFocus)
 | 
			
		||||
      g_state.ds->grabKeyboard();
 | 
			
		||||
  }
 | 
			
		||||
  else
 | 
			
		||||
  {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user