mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 任务栏图标拖拽时有白边
wayland 环境下,任务栏图标拖拽时有白边 Bug: https://pms.uniontech.com/zentao/bug-view-96066.html Log: Influence: wayland 环境任务栏图标拖拽图形效果 Change-Id: Ie7bfeaca2ec9d5aac1f549b95127e891c0eae7c1
This commit is contained in:
parent
4c9702e295
commit
363e4bb6cf
@ -804,8 +804,12 @@ void MainPanelControl::startDrag(DockItem *dockItem)
|
||||
|
||||
void MainPanelControl::startDragWayland(DockItem *item)
|
||||
{
|
||||
QPixmap pixmap = item->grab();
|
||||
|
||||
QPixmap pixmap;
|
||||
if (item->itemType() == DockItem::App) {
|
||||
pixmap = qobject_cast<AppItem *>(item)->appIcon();
|
||||
} else {
|
||||
pixmap = item->grab();
|
||||
}
|
||||
/*TODO: pixmap半透明处理
|
||||
QPixmap pixmap1;
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user