[client] spice: improve mouse syncronization with the host

This commit is contained in:
Geoffrey McRae
2020-08-20 14:52:24 +10:00
parent 7e362050f7
commit 5c912e3c27
3 changed files with 60 additions and 37 deletions

View File

@@ -42,6 +42,14 @@ struct CursorInfo
int hx, hy;
};
enum WarpState
{
WARP_STATE_ARMED,
WARP_STATE_ON,
WARP_STATE_ACTIVE,
WARP_STATE_OFF
};
struct AppState
{
enum RunState state;
@@ -73,6 +81,10 @@ struct AppState
int curLocalY;
bool haveAligned;
enum WarpState warpState;
int warpFromX, warpFromY;
int warpToX , warpToY;
const LG_Renderer * lgr;
void * lgrData;
bool lgrResize;