mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: wayland环境下图标重叠
原因:在处理wayland环境拖拽移除APP的时候没有考虑应用打开的情况,只进行undock操作,没有将图标重新插入到任务栏中。 修改方案:同X11一样处理,如果应用是开启状态,重新插入到任务栏中。 Log: 修复wayland环境下图标重叠的问题 Bug: https://pms.uniontech.com/bug-view-129443.html Influence: wayland环境拖拽已打开应用的图标。 Change-Id: I9f1493840a89257078d3ea7eb95c5ae55c20c7be
This commit is contained in:
parent
e237bbf8e0
commit
87525c9917
@ -759,6 +759,10 @@ void MainPanelControl::startDrag(DockItem *dockItem)
|
||||
insertItem(m_dragIndex, item);
|
||||
m_dragIndex = -1;
|
||||
} else {
|
||||
if (-1 == m_appAreaSonLayout->indexOf(item) && m_dragIndex != -1) {
|
||||
insertItem(m_dragIndex, item);
|
||||
m_dragIndex = -1;
|
||||
}
|
||||
AppItem *app = static_cast<AppItem *>(item.data());
|
||||
app->undock();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user