mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +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
@ -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 New Issue
Block a user