feat: 修复拖拽应用出现卡顿的问题

修复拖拽应用操作卡顿的问题

Log: 优化任务栏拖拽功能
Influence: 任务栏-拖动应用交换位置卡顿问题
Task: https://pms.uniontech.com/zentao/task-view-90552.html
Change-Id: I0b26f49c8cda7f1265de2dd36e12ec91a893f4bb
This commit is contained in:
songwentao 2021-11-07 17:44:51 +08:00
parent c650d12860
commit 37cf96519b

View File

@ -667,7 +667,7 @@ bool MainPanelControl::eventFilter(QObject *watched, QEvent *event)
moveAppSonWidget();
}
if (Utils::IS_WAYLAND_DISPLAY && m_appDragWidget && watched == static_cast<QGraphicsView *>(m_appDragWidget)->viewport()) {
if (!Utils::IS_WAYLAND_DISPLAY && m_appDragWidget && watched == static_cast<QGraphicsView *>(m_appDragWidget)->viewport()) {
bool isContains = rect().contains(mapFromGlobal(QCursor::pos()));
if (isContains) {
if (event->type() == QEvent::DragMove) {