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

This reverts commit 29e391fc54d32a6c0cbdce99760f66372e0a2f97.

Change-Id: I877aa91310f99048ec5e6d23a4e068d3cbc68a95
This commit is contained in:
songwentao 2021-11-22 09:18:05 +08:00
parent 86362dcf17
commit 0e9ae2f588

View File

@ -664,7 +664,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) {