Skip to content

Commit

Permalink
fix: 解决wayland下,DDialog窗口透明问题的问题 (#578)
Browse files Browse the repository at this point in the history
wayland下,当进程设置DGuiApplicationHelper::ColorCompositing后,DDialog需要
主动设置模糊窗口效果

Log:
Bug: https://pms.uniontech.com/bug-view-249975.html
Influence: wayland下,DDialog窗口模糊
  • Loading branch information
cjqkl authored May 29, 2024
1 parent 0f2c010 commit 4b1e714
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/dabstractdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ void DAbstractDialogPrivate::init(bool blurIfPossible)
q->setAttribute(Qt::WA_TranslucentBackground, blurIfPossible);
} else if (noTitlebarEnabled()) {
handle = new DPlatformWindowHandle(q, q);

if (!handle->enableBlurWindow()) {
handle->setEnableBlurWindow(true);
}

// fix wayland no titlebar
//q->setWindowFlags(q->windowFlags() | Qt::FramelessWindowHint);
}
Expand Down

0 comments on commit 4b1e714

Please sign in to comment.