fix: 修复PGV触控屏下设置任务栏一直隐藏以后手指无法唤起的问题

wayland环境下触摸移动时会发出CursorMove信号,此时不能将触摸的状态改为false,应该将鼠标按下的状态改为false

Log: 修复PGV触控屏下设置任务栏一直隐藏以后手指无法唤起的问题
Influence: wayland环境下触摸唤起任务栏
Bug: https://pms.uniontech.com/bug-view-128169.html
Change-Id: I7c145753439de3059391790c893f4b3b1ccbf2f0
This commit is contained in:
chenbin 2022-05-26 19:39:39 +08:00 committed by wubw
parent 6421fed1ab
commit 96b41bde76

View File

@ -1431,7 +1431,9 @@ void MultiScreenWorker::checkXEventMonitorService()
});
// 触屏时后端只发送press、release消息有move消息则为鼠标press置false
connect(touchEventInter, &XEventMonitor::CursorMove, this, [ = ] { setStates(TouchPress, false); });
connect(touchEventInter, &XEventMonitor::CursorMove, this, [ = ] {
setStates(Utils::IS_WAYLAND_DISPLAY? MousePress : TouchPress, false);
});
connect(touchEventInter, &XEventMonitor::ButtonPress, this, &MultiScreenWorker::onTouchPress);
connect(touchEventInter, &XEventMonitor::ButtonRelease, this, &MultiScreenWorker::onTouchRelease);
};