Commit 0d2a15c4 authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

wayland/x11 remoteinput.cpp: add missing conditional check for isSingleRelease

parent 875e57cf
Pipeline #68154 passed with stage
in 3 minutes and 55 seconds
......@@ -60,7 +60,7 @@ bool WaylandRemoteInput::handlePacket(const NetworkPacket& np)
const QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
const int specialKey = np.get<int>(QStringLiteral("specialKey"), 0);
if (isSingleClick || isDoubleClick || isMiddleClick || isRightClick || isSingleHold || isScroll || !key.isEmpty() || specialKey) {
if (isSingleClick || isDoubleClick || isMiddleClick || isRightClick || isSingleHold || isSingleRelease || isScroll || !key.isEmpty() || specialKey) {
if (isSingleClick) {
m_waylandInput->requestPointerButtonClick(Qt::LeftButton);
......
......@@ -107,7 +107,7 @@ bool X11RemoteInput::handlePacket(const NetworkPacket& np)
QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
int specialKey = np.get<int>(QStringLiteral("specialKey"), 0);
if (isSingleClick || isDoubleClick || isMiddleClick || isRightClick || isSingleHold || isScroll || !key.isEmpty() || specialKey) {
if (isSingleClick || isDoubleClick || isMiddleClick || isRightClick || isSingleHold || isSingleRelease || isScroll || !key.isEmpty() || specialKey) {
Display* display = QX11Info::display();
if(!display) {
return false;
......
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