Skip to content

Commit f3d4e34

Browse files
authored
fix: 需要根据X11或wayland分别设置窗口属性 (#302)
需要根据X11或wayland分别设置窗口属性 Log: 修复在字体字号设置为20后,窗口特效开关OSD提示界面显示不完整的问题 Bug: https://pms.uniontech.com/bug-view-164657.html Influence: 窗口特效开关OSD提示界面正常显示
1 parent a6b5614 commit f3d4e34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dde-osd/container.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ Container::Container(QWidget *parent)
3030
, m_supportComposite(m_wmHelper->hasComposite())
3131
{
3232
setAccessibleName("Container");
33-
setWindowFlags(Qt::Tool | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
3433
setAttribute(Qt::WA_TranslucentBackground);
3534

3635
if (!qgetenv("WAYLAND_DISPLAY").isEmpty()) {
36+
setWindowFlags(Qt::Tool | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
3737
setAttribute(Qt::WA_NativeWindow);
3838
// 慎重修改层级,特别考虑对锁屏的影响
3939
windowHandle()->setProperty("_d_dwayland_window-type", "onScreenDisplay");
40+
} else {
41+
setWindowFlags(Qt::ToolTip | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
4042
}
4143

4244
m_quitTimer->setSingleShot(true);

0 commit comments

Comments
 (0)