[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 authored and Geoffrey McRae committed 2021-01-13 13:39:10 +11:00
1 parent 95205ca967
commit 8f4e0f6b50
1 file changed
+3
+3
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);