linux: comment out some code that doesn't work

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-12-25 13:36:18 +08:00
parent 7327179d77
commit d4c087f627
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,7 @@ bool Utils::isBlurBehindWindowSupported()
if (FramelessConfig::instance()->isSet(Option::ForceNonNativeBackgroundBlur)) { if (FramelessConfig::instance()->isSet(Option::ForceNonNativeBackgroundBlur)) {
return false; 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 QString windowManager = getWindowManagerName();
static const bool isDeepinV15 = (windowManager == FRAMELESSHELPER_STRING_LITERAL("Mutter(DeepinGala)")); static const bool isDeepinV15 = (windowManager == FRAMELESSHELPER_STRING_LITERAL("Mutter(DeepinGala)"));
if (isDeepinV15) { if (isDeepinV15) {
@ -500,6 +500,7 @@ bool Utils::isBlurBehindWindowSupported()
static const xcb_atom_t atom = internAtom(ATOM_KDE_NET_WM_BLUR_BEHIND_REGION); static const xcb_atom_t atom = internAtom(ATOM_KDE_NET_WM_BLUR_BEHIND_REGION);
return ((atom != XCB_NONE) && isSupportedByRootWindow(atom)); return ((atom != XCB_NONE) && isSupportedByRootWindow(atom));
} }
#endif
return false; return false;
}(); }();
return result; return result;