From 3df7d30cd5b551b23e41781313cef389239e27bc Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 27 Dec 2021 09:54:35 +1100 Subject: [PATCH] [client] core: don't try to send LGMP messages if the video is stopped If the video stream is stopped the LGMP session is not valid, so we can't send messages to the client. --- client/src/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/core.c b/client/src/core.c index 722d173b..ed304840 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -448,7 +448,8 @@ void core_handleMouseNormal(double ex, double ey) struct DoublePoint guest; util_localCurToGuest(&guest); - if (g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS) + if (!g_state.stopVideo && + g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS) { const KVMFRSetCursorPos msg = { .msg.type = KVMFR_MESSAGE_SETCURSORPOS,