Fix remote mouse: you can drag but not drop in Plasma Wayland

This commit is contained in:
Albert Vaca Cintora 2024-03-01 23:52:40 +01:00
parent 8023bb5bfc
commit c03bcff4f8
No known key found for this signature in database
3 changed files with 1 additions and 2 deletions

View file

@ -66,6 +66,7 @@ void MousepadPlugin::connected()
if (m_impl) { if (m_impl) {
np.set<bool>(QStringLiteral("state"), m_impl->hasKeyboardSupport()); np.set<bool>(QStringLiteral("state"), m_impl->hasKeyboardSupport());
} }
np.set<bool>(QStringLiteral("singlerelease_support"), true);
sendPacket(np); sendPacket(np);
} }

View file

@ -240,7 +240,6 @@ bool WaylandRemoteInput::handlePacket(const NetworkPacket &np)
// For drag'n drop // For drag'n drop
s_session->iface->NotifyPointerButton(s_session->m_xdpPath, {}, BTN_LEFT, 1); s_session->iface->NotifyPointerButton(s_session->m_xdpPath, {}, BTN_LEFT, 1);
} else if (isSingleRelease) { } 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); s_session->iface->NotifyPointerButton(s_session->m_xdpPath, {}, BTN_LEFT, 0);
} else if (isScroll) { } else if (isScroll) {
s_session->iface->NotifyPointerAxis(s_session->m_xdpPath, {}, dx, dy); s_session->iface->NotifyPointerAxis(s_session->m_xdpPath, {}, dx, dy);

View file

@ -131,7 +131,6 @@ bool X11RemoteInput::handlePacket(const NetworkPacket &np)
// For drag'n drop // For drag'n drop
XTestFakeButtonEvent(display, mainMouseButton, True, 0); XTestFakeButtonEvent(display, mainMouseButton, True, 0);
} else if (isSingleRelease) { } 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); XTestFakeButtonEvent(display, mainMouseButton, False, 0);
} else if (isScroll) { } else if (isScroll) {
if (dy < 0) { if (dy < 0) {