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.
This commit is contained in:
parent
2488e4a587
commit
ac9b246809
|
@ -396,7 +396,7 @@ bool TriggerSTMPowerEvent()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_XRANDR) && HAVE_X11
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||||
void EnableScreenSaver(Window win, bool enable)
|
void EnableScreenSaver(Window win, bool enable)
|
||||||
#else
|
#else
|
||||||
void EnableScreenSaver(bool enable)
|
void EnableScreenSaver(bool enable)
|
||||||
|
|
Loading…
Reference in New Issue