From 377d2ddcd16115a18e75e7c18fc74da6c4dc47a3 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 21 Jul 2019 10:06:56 +0200 Subject: [PATCH] Fix delta --- .../Plugins/PresenterPlugin/PresenterPlugin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/PresenterPlugin/PresenterPlugin.java b/src/org/kde/kdeconnect/Plugins/PresenterPlugin/PresenterPlugin.java index 9bec7a08..1c5a033b 100644 --- a/src/org/kde/kdeconnect/Plugins/PresenterPlugin/PresenterPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/PresenterPlugin/PresenterPlugin.java @@ -121,11 +121,11 @@ public class PresenterPlugin extends Plugin { if (np == null) { np = new NetworkPacket(PACKET_TYPE_PRESENTER); } else { - xDelta += np.getInt("px"); - yDelta += np.getInt("px"); + xDelta += np.getInt("dx"); + yDelta += np.getInt("dy"); } - np.set("px", xDelta); - np.set("py", yDelta); + np.set("dx", xDelta); + np.set("dy", yDelta); device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER); }