diff --git a/framelesshelper_win32.cpp b/framelesshelper_win32.cpp index c2e19ac..e58e9ef 100644 --- a/framelesshelper_win32.cpp +++ b/framelesshelper_win32.cpp @@ -710,6 +710,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me default: break; } +#if 0 // TODO: what if the user want to use the wallpaper blur all the time? // Add an option to let the user choose what he wants. if (Utilities::isWin10OrGreater()) { @@ -740,6 +741,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me } } } +#endif return false; } diff --git a/framelessquickhelper.cpp b/framelessquickhelper.cpp index d45c4ff..b5abf15 100644 --- a/framelessquickhelper.cpp +++ b/framelessquickhelper.cpp @@ -143,11 +143,13 @@ void FramelessQuickHelper::timerEvent(QTimerEvent *event) void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor) { +#if 0 #ifdef Q_OS_WINDOWS // TODO: let the user choose what he wants. if (Utilities::isWin10OrGreater()) { qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); } +#endif #endif Utilities::setBlurEffectEnabled(window(), enabled, gradientColor); } diff --git a/qtacrylicwidget.cpp b/qtacrylicwidget.cpp index 2f608b9..e81e948 100644 --- a/qtacrylicwidget.cpp +++ b/qtacrylicwidget.cpp @@ -145,11 +145,13 @@ void QtAcrylicWidget::showEvent(QShowEvent *event) if (!inited) { const QWindow *win = windowHandle(); FramelessWindowsManager::addWindow(win); +#if 0 #ifdef Q_OS_WINDOWS // TODO: let the user choose what he wants. if (Utilities::isWin10OrGreater()) { qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); } +#endif #endif Utilities::setBlurEffectEnabled(win, true); m_acrylicHelper.install(win);