From d4c087f627c9f8514beb58357735221f85ee8358 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sun, 25 Dec 2022 13:36:18 +0800 Subject: [PATCH] linux: comment out some code that doesn't work Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/utils_linux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/utils_linux.cpp b/src/core/utils_linux.cpp index c0007a6..8c851c2 100644 --- a/src/core/utils_linux.cpp +++ b/src/core/utils_linux.cpp @@ -488,7 +488,7 @@ bool Utils::isBlurBehindWindowSupported() if (FramelessConfig::instance()->isSet(Option::ForceNonNativeBackgroundBlur)) { return false; } - return false; // FIXME: check what's wrong. +#if 0 // FIXME: The window will become totally black if we enable blur behind window on KWin. static const QString windowManager = getWindowManagerName(); static const bool isDeepinV15 = (windowManager == FRAMELESSHELPER_STRING_LITERAL("Mutter(DeepinGala)")); if (isDeepinV15) { @@ -500,6 +500,7 @@ bool Utils::isBlurBehindWindowSupported() static const xcb_atom_t atom = internAtom(ATOM_KDE_NET_WM_BLUR_BEHIND_REGION); return ((atom != XCB_NONE) && isSupportedByRootWindow(atom)); } +#endif return false; }(); return result;