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