[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:
Quantum 2021-01-12 17:54:23 -05:00 committed by Geoffrey McRae
parent 95205ca967
commit 8f4e0f6b50

View file

@ -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);