mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
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:
parent
6421fed1ab
commit
96b41bde76
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user