From f883c630f63f12d3143bedec1153bfab3f3d4c5c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Jan 2021 05:07:55 +1100 Subject: [PATCH] [client] spice: set inView false if the focus is lost Failure to do this results in loss of input on X11 as we need to be sure the cursor is ungrabbed. --- client/src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index 49e8cb19..dea3d947 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -148,6 +148,9 @@ void app_handleFocusEvent(bool focused) g_state.ds->ungrabKeyboard(); } + if (!focused) + setCursorInView(false); + g_state.focused = focused; g_cursor.realign = true; g_state.ds->realignPointer();