mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[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:
@@ -256,6 +256,7 @@ static int cursorThread(void * unused)
|
|||||||
g_cursor.guest.y
|
g_cursor.guest.y
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!g_state.stopVideo)
|
||||||
lgSignalEvent(e_frame);
|
lgSignalEvent(e_frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -354,7 +355,7 @@ static int cursorThread(void * unused)
|
|||||||
g_cursor.guest.y
|
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);
|
lgSignalEvent(e_frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user