Commit 2604bc95 authored by Matthijs Tijink's avatar Matthijs Tijink

Use the packet-in-queue removing in the presenter plugin pointer

parent d5b697f2
...@@ -46,6 +46,7 @@ public class NetworkPacket { ...@@ -46,6 +46,7 @@ public class NetworkPacket {
public final static String PACKET_TYPE_PAIR = "kdeconnect.pair"; public final static String PACKET_TYPE_PAIR = "kdeconnect.pair";
public final static int PACKET_REPLACEID_MOUSEMOVE = 0; public final static int PACKET_REPLACEID_MOUSEMOVE = 0;
public final static int PACKET_REPLACEID_PRESENTERPOINTER = 1;
public static Set<String> protocolPacketTypes = new HashSet<String>() {{ public static Set<String> protocolPacketTypes = new HashSet<String>() {{
add(PACKET_TYPE_IDENTITY); add(PACKET_TYPE_IDENTITY);
......
...@@ -120,7 +120,7 @@ public class PresenterPlugin extends Plugin { ...@@ -120,7 +120,7 @@ public class PresenterPlugin extends Plugin {
NetworkPacket np = new NetworkPacket(PACKET_TYPE_PRESENTER); NetworkPacket np = new NetworkPacket(PACKET_TYPE_PRESENTER);
np.set("px", percentX); np.set("px", percentX);
np.set("py", percentY); np.set("py", percentY);
device.sendPacket(np); device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment