mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] update for the new LGMP interface prototypes
This commit is contained in:
parent
714b1bce70
commit
6ee30b2308
@ -478,8 +478,9 @@ void core_handleMouseNormal(double ex, double ey)
|
|||||||
if (!g_state.stopVideo &&
|
if (!g_state.stopVideo &&
|
||||||
g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS)
|
g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS)
|
||||||
{
|
{
|
||||||
const KVMFRSetCursorPos msg = {
|
const KVMFRMessage_SetCursorPos msg = {
|
||||||
.msg.type = KVMFR_MESSAGE_SETCURSORPOS,
|
.msg.type = KVMFR_MESSAGE_SETCURSORPOS,
|
||||||
|
.msg.clientID = g_state.clientID,
|
||||||
.x = round(guest.x),
|
.x = round(guest.x),
|
||||||
.y = round(guest.y)
|
.y = round(guest.y)
|
||||||
};
|
};
|
||||||
|
@ -1433,7 +1433,8 @@ restart:
|
|||||||
initialSpiceEnable = 0;
|
initialSpiceEnable = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata);
|
status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata,
|
||||||
|
&g_state.clientID);
|
||||||
switch(status)
|
switch(status)
|
||||||
{
|
{
|
||||||
case LGMP_OK:
|
case LGMP_OK:
|
||||||
|
@ -121,6 +121,7 @@ struct AppState
|
|||||||
|
|
||||||
struct IVSHMEM shm;
|
struct IVSHMEM shm;
|
||||||
PLGMPClient lgmp;
|
PLGMPClient lgmp;
|
||||||
|
uint32_t clientID;
|
||||||
PLGMPClientQueue pointerQueue;
|
PLGMPClientQueue pointerQueue;
|
||||||
LG_Lock pointerQueueLock;
|
LG_Lock pointerQueueLock;
|
||||||
KVMFRFeatureFlags kvmfrFeatures;
|
KVMFRFeatureFlags kvmfrFeatures;
|
||||||
|
@ -167,7 +167,7 @@ typedef struct KVMFRMessage_SetCursorPos
|
|||||||
KVMFRMessage msg;
|
KVMFRMessage msg;
|
||||||
int32_t x, y;
|
int32_t x, y;
|
||||||
}
|
}
|
||||||
KVMFRSetCursorPos;
|
KVMFRMessage_SetCursorPos;
|
||||||
|
|
||||||
typedef struct KVMFRMessage_FrameTime
|
typedef struct KVMFRMessage_FrameTime
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user