mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +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:
parent
89b73512ad
commit
06f6a96b56
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user