From 0ca1de2f1a3cdbd41715ef96910ec6556d432d14 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Sun, 21 May 2023 20:33:32 +0800 Subject: [PATCH] Fix the system titlebar buttons show behind surface. --- example/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/src/main.cpp b/example/src/main.cpp index dda34ec7..879a5e98 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -22,7 +22,9 @@ FRAMELESSHELPER_USE_NAMESPACE QGuiApplication::setApplicationName("FluentUI"); QGuiApplication app(argc, argv); FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); -// FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow); +#ifndef QT_OS_WIN + FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow); +#endif FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); AppInfo* appInfo = new AppInfo();