wayland/x11 remoteinput.cpp: add missing conditional check for isSingleRelease
This commit is contained in:
parent
875e57cf4f
commit
0d2a15c41f
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ bool WaylandRemoteInput::handlePacket(const NetworkPacket& np)
|
||||||
const QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
|
const QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
|
||||||
const int specialKey = np.get<int>(QStringLiteral("specialKey"), 0);
|
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) {
|
if (isSingleClick) {
|
||||||
m_waylandInput->requestPointerButtonClick(Qt::LeftButton);
|
m_waylandInput->requestPointerButtonClick(Qt::LeftButton);
|
||||||
|
|
|
@ -107,7 +107,7 @@ bool X11RemoteInput::handlePacket(const NetworkPacket& np)
|
||||||
QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
|
QString key = np.get<QString>(QStringLiteral("key"), QLatin1String(""));
|
||||||
int specialKey = np.get<int>(QStringLiteral("specialKey"), 0);
|
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();
|
Display* display = QX11Info::display();
|
||||||
if(!display) {
|
if(!display) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue