fixes repaint issue on macos

fixes:  #197

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-01-01 14:19:14 +08:00
parent f651116fda
commit 3a97e712fb
1 changed files with 0 additions and 3 deletions

View File

@ -195,9 +195,6 @@ void FramelessWidgetsHelperPrivate::setBlurBehindWindowEnabled(const bool enable
} }
palette.setColor(QPalette::Window, (enable ? kDefaultTransparentColor : m_savedWindowBackgroundColor)); palette.setColor(QPalette::Window, (enable ? kDefaultTransparentColor : m_savedWindowBackgroundColor));
m_window->setPalette(palette); m_window->setPalette(palette);
#ifndef Q_OS_WINDOWS
m_window->setAttribute(Qt::WA_TranslucentBackground, enable);
#endif // Q_OS_WINDOWS
if (Utils::setBlurBehindWindowEnabled(m_window->winId(), if (Utils::setBlurBehindWindowEnabled(m_window->winId(),
(enable ? BlurMode::Default : BlurMode::Disable), color)) { (enable ? BlurMode::Default : BlurMode::Disable), color)) {
m_blurBehindWindowEnabled = enable; m_blurBehindWindowEnabled = enable;