diff --git a/src/FluFrameless.cpp b/src/FluFrameless.cpp index 2bf490f6..5b66dc21 100644 --- a/src/FluFrameless.cpp +++ b/src/FluFrameless.cpp @@ -295,8 +295,8 @@ FluFrameless::~FluFrameless() = default; } void FluFrameless::componentComplete() { - HWND hwnd = reinterpret_cast(window()->winId()); #ifdef Q_OS_WIN + HWND hwnd = reinterpret_cast(window()->winId()); if (isWin11OrGreater()) { availableEffects({"mica", "mica-alt", "acrylic", "dwm-blur", "normal"}); } else if (isWin7Only()) {