mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-19 22:08:09 +00:00
[client] don't attempt to align to the guest with invalid pos data
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user