mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复wayland下部分托盘的tooltips显示异常
wayland下,将DockPopupWindow设置为Qt::FramelessWindowHint可以避免这个问题 Log: 修复wayland下托盘图标显示异常的问题 Influence: 进入wayland,打开音乐,鼠标放入到音乐图标上,观察是否正常显示提示消息 Bug: https://pms.uniontech.com/bug-view-157821.html Change-Id: I925e6403c7bea3352ef82220f04f8c3bc5a84e0e
This commit is contained in:
parent
ad56764f49
commit
62c0802ae6
@ -22,6 +22,7 @@
|
||||
#include "snitrayitemwidget.h"
|
||||
#include "themeappicon.h"
|
||||
#include "tipswidget.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <dbusmenu-qt5/dbusmenuimporter.h>
|
||||
|
||||
@ -76,6 +77,8 @@ SNITrayItemWidget::SNITrayItemWidget(const QString &sniServicePath, QWidget *par
|
||||
arrowRectangle->setArrowHeight(10);
|
||||
arrowRectangle->setObjectName("snitraypopup");
|
||||
PopupWindow = arrowRectangle;
|
||||
if (Utils::IS_WAYLAND_DISPLAY)
|
||||
PopupWindow->setWindowFlags(PopupWindow->windowFlags() | Qt::FramelessWindowHint);
|
||||
connect(qApp, &QApplication::aboutToQuit, PopupWindow, &DockPopupWindow::deleteLater);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user