[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
This commit is contained in:
Geoffrey McRae 2021-07-17 11:46:30 +10:00
parent 03c247a9ff
commit 73357988e6

View File

@ -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);
}