summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-04-14 16:48:49 +0200
committerLéo Lam <leo@innovatetechnologi.es>2018-04-14 17:14:38 +0200
commit2f22c76db18db0b6b360ebf1b406c81196ef3a9c (patch)
tree6f1a65fdd9064aabf3b3612e49e19a053b398dc2 /Source/Core/DolphinWX/Frame.cpp
parent62269572e40b8767da6848c77ba677a9a610c3a4 (diff)
UICommon: Avoid including Xrandr.h
Xlib has really terrible headers that declare non-namespaced macros and typedefs for common words. Just wasted 10 minutes trying to figure out why a unit test failed to build before I remembered it was Xrandr.h conflicting with our enum class members again. To fix the issue, this removes the Display* parameter from the EnableScreensaver function (which was unused) so we don't have to include Xrandr.h anymore.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index eaebe056d4..69000530e8 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -708,8 +708,7 @@ WXLRESULT CFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
void CFrame::EnableScreenSaver(bool enable)
{
#if defined(HAVE_XRANDR) && HAVE_XRANDR
- UICommon::EnableScreenSaver(X11Utils::XDisplayFromHandle(GetHandle()),
- X11Utils::XWindowFromHandle(GetHandle()), enable);
+ UICommon::EnableScreenSaver(X11Utils::XWindowFromHandle(GetHandle()), enable);
#else
UICommon::EnableScreenSaver(enable);
#endif