forked from github_mirror/framelesshelper
fixes repaint issue on macos
fixes: #197 Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
f651116fda
commit
3a97e712fb
|
@ -195,9 +195,6 @@ void FramelessWidgetsHelperPrivate::setBlurBehindWindowEnabled(const bool enable
|
|||
}
|
||||
palette.setColor(QPalette::Window, (enable ? kDefaultTransparentColor : m_savedWindowBackgroundColor));
|
||||
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(),
|
||||
(enable ? BlurMode::Default : BlurMode::Disable), color)) {
|
||||
m_blurBehindWindowEnabled = enable;
|
||||
|
|
Loading…
Reference in New Issue