mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +00:00
[client] spice/wayland: ignore mouse moves when dpiScale is unknown
This prevents division by zero and sending invalid information to spice.
This commit is contained in:
parent
95205ca967
commit
8f4e0f6b50
1 changed files with 3 additions and 0 deletions
|
@ -920,6 +920,9 @@ static void guestCurToLocal(struct DoublePoint *local)
|
|||
// capture mode.
|
||||
static void handleMouseWayland()
|
||||
{
|
||||
if (g_cursor.guest.dpiScale == 0)
|
||||
return;
|
||||
|
||||
/* translate the guests position to our coordinate space */
|
||||
struct DoublePoint local;
|
||||
guestCurToLocal(&local);
|
||||
|
|
Loading…
Reference in a new issue