[client] don't attempt to align to the guest with invalid pos data

This commit is contained in:
Geoffrey McRae
2021-01-19 05:56:40 +11:00
parent 1da24af6ee
commit b2ac2980d5
2 changed files with 20 additions and 3 deletions

View File

@@ -59,6 +59,8 @@ struct AppState
SDL_Rect border;
SDL_Point srcSize;
LG_RendererRect dstRect;
bool posInfoValid;
bool alignToGuest;
const LG_Renderer * lgr;
void * lgrData;
@@ -229,6 +231,9 @@ struct CursorState
/* the local position */
struct DoublePoint pos;
/* true if the position is valid */
bool valid;
/* the button state */
unsigned int buttons;