From 4051cc6f93af2d39fab54ddf38f724f70a67d66d Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 9 Jan 2021 17:54:40 -0500 Subject: [PATCH] [client] spice: fix cursor position mismatch with UI scaling --- client/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 3205c0a3..7144b786 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -979,8 +979,8 @@ static void handleMouseNormal(double ex, double ey) struct DoublePoint guest = { - .x = (g_cursor.pos.x - g_state.dstRect.x) * g_cursor.scale.x * g_cursor.dpiScale, - .y = (g_cursor.pos.y - g_state.dstRect.y) * g_cursor.scale.y * g_cursor.dpiScale + .x = (g_cursor.pos.x - g_state.dstRect.x) * g_cursor.scale.x, + .y = (g_cursor.pos.y - g_state.dstRect.y) * g_cursor.scale.y }; /* add the difference to the offset */