mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复wayland环境下拖动任务栏图标左上角闪动的问题
在创建完拖拽图标后,让其异步执行onFollowMouse方法,防止图标出现在左上角 Log: 修复wayland环境任务栏拖拽图标闪动的问题 Influence: wayland环境-任务栏-拖拽图标 Bug: https://pms.uniontech.com/zentao/bug-view-112219.html Change-Id: If0c727a23aac2c37b1cd1fb66f63f5f1aa0f8f84
This commit is contained in:
parent
a4336fd606
commit
e431b3e754
@ -71,9 +71,10 @@ AppDragWidget::AppDragWidget(QWidget *parent)
|
||||
|
||||
initAnimations();
|
||||
|
||||
m_followMouseTimer->setInterval(16);
|
||||
m_followMouseTimer->setInterval(16);
|
||||
connect(m_followMouseTimer, &QTimer::timeout, this, &AppDragWidget::onFollowMouse);
|
||||
m_followMouseTimer->start();
|
||||
QTimer::singleShot(0, this, &AppDragWidget::onFollowMouse);
|
||||
}
|
||||
|
||||
void AppDragWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user