From 4113294d30326455e11ca6743c3b6412a7591d82 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 17:32:44 +1100 Subject: [PATCH] [client] spice: fix failure to ungrab the kb with captureOnly --- client/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main.c b/client/src/main.c index 275211e5..fb864dc2 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1561,7 +1561,8 @@ static void setGrabQuiet(bool enable) { if (params.grabKeyboard) { - if (!g_state.focused || !params.grabKeyboardOnFocus) + if (!g_state.focused || !params.grabKeyboardOnFocus || + params.captureInputOnly) g_state.ds->ungrabKeyboard(); }