mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] updated to use new cursor state flags
This commit is contained in:
parent
b7e4426002
commit
dcc9625803
@ -299,6 +299,9 @@ static int cursorThread(void * unused)
|
|||||||
}
|
}
|
||||||
|
|
||||||
KVMFRCursor * cursor = (KVMFRCursor *)msg.mem;
|
KVMFRCursor * cursor = (KVMFRCursor *)msg.mem;
|
||||||
|
|
||||||
|
if (msg.udata & CURSOR_FLAG_POSITION)
|
||||||
|
{
|
||||||
state.cursor.x = cursor->x;
|
state.cursor.x = cursor->x;
|
||||||
state.cursor.y = cursor->y;
|
state.cursor.y = cursor->y;
|
||||||
state.cursorVisible = cursor->visible;
|
state.cursorVisible = cursor->visible;
|
||||||
@ -309,8 +312,9 @@ static int cursorThread(void * unused)
|
|||||||
alignMouseWithHost();
|
alignMouseWithHost();
|
||||||
state.haveAligned = true;
|
state.haveAligned = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (msg.udata == 1)
|
if (msg.udata & CURSOR_FLAG_SHAPE)
|
||||||
{
|
{
|
||||||
switch(cursor->type)
|
switch(cursor->type)
|
||||||
{
|
{
|
||||||
@ -341,6 +345,9 @@ static int cursorThread(void * unused)
|
|||||||
|
|
||||||
lgmpClientMessageDone(queue);
|
lgmpClientMessageDone(queue);
|
||||||
state.updateCursor = false;
|
state.updateCursor = false;
|
||||||
|
|
||||||
|
if (msg.udata & CURSOR_FLAG_POSITION)
|
||||||
|
{
|
||||||
state.lgr->on_mouse_event
|
state.lgr->on_mouse_event
|
||||||
(
|
(
|
||||||
state.lgrData,
|
state.lgrData,
|
||||||
@ -349,6 +356,7 @@ static int cursorThread(void * unused)
|
|||||||
state.cursor.y
|
state.cursor.y
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lgmpClientUnsubscribe(&queue);
|
lgmpClientUnsubscribe(&queue);
|
||||||
state.running = false;
|
state.running = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user