mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat: 禁用图标抖动
根据dtk提供的接口判断是否禁用app图标抖动效果 Log: 可配置是否app图标抖动效果 Task: https://pms.uniontech.com/zentao/task-view-86242.html Influence: 在dock栏打开app的场景 Change-Id: I9a2568fbfae3c0da919af3ffcd3cf1970d4dde79
This commit is contained in:
parent
075844cb8b
commit
fdd2c679e4
@ -41,6 +41,8 @@
|
|||||||
|
|
||||||
#include <DGuiApplicationHelper>
|
#include <DGuiApplicationHelper>
|
||||||
|
|
||||||
|
DGUI_USE_NAMESPACE
|
||||||
|
|
||||||
#define APP_DRAG_THRESHOLD 20
|
#define APP_DRAG_THRESHOLD 20
|
||||||
|
|
||||||
QPoint AppItem::MousePressPos;
|
QPoint AppItem::MousePressPos;
|
||||||
@ -322,7 +324,7 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e)
|
|||||||
m_itemEntryInter->Activate(QX11Info::getTimestamp());
|
m_itemEntryInter->Activate(QX11Info::getTimestamp());
|
||||||
|
|
||||||
// play launch effect
|
// play launch effect
|
||||||
if (m_windowInfos.isEmpty())
|
if (m_windowInfos.isEmpty() && DGuiApplicationHelper::isSpecialEffectsEnvironment())
|
||||||
playSwingEffect();
|
playSwingEffect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user