From 73357988e617a5ad71ff058515f08a1ad768da7b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 17 Jul 2021 11:46:30 +1000 Subject: [PATCH] [client] main: don't trigger redraws if the video feed is disabled If the video feed is disabled we are not drawing the cursor, so don't cause needless redraws --- client/src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index e2db46e8..e0e4460c 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -256,7 +256,8 @@ static int cursorThread(void * unused) g_cursor.guest.y ); - lgSignalEvent(e_frame); + if (!g_state.stopVideo) + lgSignalEvent(e_frame); } const struct timespec req = @@ -354,7 +355,7 @@ static int cursorThread(void * unused) g_cursor.guest.y ); - if (g_params.mouseRedraw && g_cursor.guest.visible) + if (g_params.mouseRedraw && g_cursor.guest.visible && !g_state.stopVideo) lgSignalEvent(e_frame); }