[host] don't spam the client with mouse updates when nothing has changed

This commit is contained in:
Geoffrey McRae
2017-12-13 02:29:53 +11:00
parent 5cfae05cae
commit 4b4aca841c
3 changed files with 24 additions and 6 deletions

View File

@@ -240,6 +240,8 @@ bool Service::Process()
// tell the host where the cursor is
m_header->flags |= KVMFR_HEADER_FLAG_CURSOR;
m_header->cursor.flags |= KVMFR_CURSOR_FLAG_POS;
if (frame.cursor.visible)
m_header->cursor.flags |= KVMFR_CURSOR_FLAG_VISIBLE;
m_header->cursor.x = frame.cursor.x;
m_header->cursor.y = frame.cursor.y;
}