From c9256c52bfcd0da14b4cf625414f3922f32e8a6a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 15 Sep 2018 13:35:03 +0200 Subject: [PATCH] Check for QT version --- src/widgets/osdpretty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;