[all] make cursor visible a flag and send it seperate to position

This commit is contained in:
Geoffrey McRae committed 2020-01-27 02:07:32 +11:00
1 parent 9d7f773b9c
commit bced5f95ff
5 files changed
+21 -15

No files matched your search

+3 -1
View File
@@ -300,11 +300,13 @@ static int cursorThread(void * unused)
KVMFRCursor * cursor = (KVMFRCursor *)msg.mem;
state.cursorVisible =
msg.udata & CURSOR_FLAG_VISIBLE;
if (msg.udata & CURSOR_FLAG_POSITION)
{
state.cursor.x = cursor->x;
state.cursor.y = cursor->y;
state.cursorVisible = cursor->visible;
state.haveCursorPos = true;
if (!state.haveAligned && state.haveSrcSize && state.haveCurLocal)