From ac9b2468098e7f316af546884e7137c916b0cc23 Mon Sep 17 00:00:00 2001 From: Techjar Date: Wed, 13 May 2020 02:11:19 -0400 Subject: [PATCH] Core/UICommon: Fix EnableScreenSaver preprocessor directive The include for X11Utils.h (and by extension Xlib.h) is gated behind HAVE_XRANDR, as well as the declaration for this function, but its definition was mistakenly gated behind HAVE_X11. Therefore, if we have X11 but not Xrandr, the build will fail due to declaration/definition mismatch and the missing Window type. --- Source/Core/UICommon/UICommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp index adff5adca3..86de40a8ca 100644 --- a/Source/Core/UICommon/UICommon.cpp +++ b/Source/Core/UICommon/UICommon.cpp @@ -396,7 +396,7 @@ bool TriggerSTMPowerEvent() return true; } -#if defined(HAVE_XRANDR) && HAVE_X11 +#if defined(HAVE_XRANDR) && HAVE_XRANDR void EnableScreenSaver(Window win, bool enable) #else void EnableScreenSaver(bool enable)