Skip to content

Commit

Permalink
[client] core: don't try to send LGMP messages if the video is stopped
Browse files Browse the repository at this point in the history
If the video stream is stopped the LGMP session is not valid, so we
can't send messages to the client.
  • Loading branch information
gnif committed Dec 26, 2021
1 parent 74444f8 commit 3df7d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/core.c
Expand Up @@ -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,
Expand Down

0 comments on commit 3df7d30

Please sign in to comment.