diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp index aeb8f30cf..e0193c62e 100644 --- a/src/widgets/osdpretty.cpp +++ b/src/widgets/osdpretty.cpp @@ -162,7 +162,7 @@ OSDPretty::~OSDPretty() { } bool OSDPretty::IsTransparencyAvailable() { -#ifdef HAVE_X11 +#if defined(HAVE_X11) && (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)) return QX11Info::isCompositingManagerRunning(); #endif return true;