From f8b06eb6884d984eb0093a449b8a7bbeb9467cd4 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Fri, 1 Mar 2024 23:52:40 +0100 Subject: [PATCH] singlerelease is actually used --- plugins/mousepad/waylandremoteinput.cpp | 1 - plugins/mousepad/x11remoteinput.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/plugins/mousepad/waylandremoteinput.cpp b/plugins/mousepad/waylandremoteinput.cpp index d27a27824..d1289a425 100644 --- a/plugins/mousepad/waylandremoteinput.cpp +++ b/plugins/mousepad/waylandremoteinput.cpp @@ -240,7 +240,6 @@ bool WaylandRemoteInput::handlePacket(const NetworkPacket &np) // For drag'n drop s_session->iface->NotifyPointerButton(s_session->m_xdpPath, {}, BTN_LEFT, 1); } else if (isSingleRelease) { - // For drag'n drop. NEVER USED (release is done by tapping, which actually triggers a isSingleClick). Kept here for future-proofness. s_session->iface->NotifyPointerButton(s_session->m_xdpPath, {}, BTN_LEFT, 0); } else if (isScroll) { s_session->iface->NotifyPointerAxis(s_session->m_xdpPath, {}, dx, dy); diff --git a/plugins/mousepad/x11remoteinput.cpp b/plugins/mousepad/x11remoteinput.cpp index 9532dca37..be42409ef 100644 --- a/plugins/mousepad/x11remoteinput.cpp +++ b/plugins/mousepad/x11remoteinput.cpp @@ -131,7 +131,6 @@ bool X11RemoteInput::handlePacket(const NetworkPacket &np) // For drag'n drop XTestFakeButtonEvent(display, mainMouseButton, True, 0); } else if (isSingleRelease) { - // For drag'n drop. NEVER USED (release is done by tapping, which actually triggers a isSingleClick). Kept here for future-proofness. XTestFakeButtonEvent(display, mainMouseButton, False, 0); } else if (isScroll) { if (dy < 0) {