[client] spice: fix failure to ungrab the kb with captureOnly

This commit is contained in:
Geoffrey McRae 2021-01-21 17:32:44 +11:00
parent aa92a7a90d
commit 4113294d30

View File

@ -1561,7 +1561,8 @@ static void setGrabQuiet(bool enable)
{ {
if (params.grabKeyboard) if (params.grabKeyboard)
{ {
if (!g_state.focused || !params.grabKeyboardOnFocus) if (!g_state.focused || !params.grabKeyboardOnFocus ||
params.captureInputOnly)
g_state.ds->ungrabKeyboard(); g_state.ds->ungrabKeyboard();
} }