We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6b5614 commit f3d4e34Copy full SHA for f3d4e34
dde-osd/container.cpp
@@ -30,13 +30,15 @@ Container::Container(QWidget *parent)
30
, m_supportComposite(m_wmHelper->hasComposite())
31
{
32
setAccessibleName("Container");
33
- setWindowFlags(Qt::Tool | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
34
setAttribute(Qt::WA_TranslucentBackground);
35
36
if (!qgetenv("WAYLAND_DISPLAY").isEmpty()) {
+ setWindowFlags(Qt::Tool | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
37
setAttribute(Qt::WA_NativeWindow);
38
// 慎重修改层级,特别考虑对锁屏的影响
39
windowHandle()->setProperty("_d_dwayland_window-type", "onScreenDisplay");
40
+ } else {
41
+ setWindowFlags(Qt::ToolTip | Qt::WindowTransparentForInput | Qt::WindowDoesNotAcceptFocus);
42
}
43
44
m_quitTimer->setSingleShot(true);
0 commit comments