From 947ba9bfe338513f736fb27a231f197c956188dd Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Jan 2021 22:12:39 +1100 Subject: [PATCH] [client] spice: fix input:captureOnly support --- client/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 39635fd4..eeff7932 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -137,6 +137,7 @@ void app_updateCursorPos(double x, double y) void app_handleFocusEvent(bool focused) { + g_state.focused = focused; if (!app_inputEnabled()) return; @@ -151,7 +152,6 @@ void app_handleFocusEvent(bool focused) if (!focused) setCursorInView(false); - g_state.focused = focused; g_cursor.realign = true; g_state.ds->realignPointer(); } @@ -1560,7 +1560,7 @@ static void setGrabQuiet(bool enable) g_state.ds->ungrabKeyboard(); } - if (!warpSupport) + if (!warpSupport || params.captureInputOnly) g_state.ds->ungrabPointer(); // if exiting capture when input on capture only, we want to show the cursor