aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dolphin-emu/fix-compilation-without-xrandr-support.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-06-29 13:00:16 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-07-09 20:51:50 -0300
commit65df6ed5fecbb2f31327f9aa0cb4431642535b1a (patch)
tree4a7b861695f375bd276fc942393f5d595fcecf89 /testing/dolphin-emu/fix-compilation-without-xrandr-support.patch
parent361846824039b9e863e16de0bd2fef60da229c4c (diff)
downloadaports-65df6ed5fecbb2f31327f9aa0cb4431642535b1a.tar.bz2
aports-65df6ed5fecbb2f31327f9aa0cb4431642535b1a.tar.xz
testing/dolphin-emu: new aport
Diffstat (limited to 'testing/dolphin-emu/fix-compilation-without-xrandr-support.patch')
-rw-r--r--testing/dolphin-emu/fix-compilation-without-xrandr-support.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/dolphin-emu/fix-compilation-without-xrandr-support.patch b/testing/dolphin-emu/fix-compilation-without-xrandr-support.patch
new file mode 100644
index 0000000000..9d1c9ff333
--- /dev/null
+++ b/testing/dolphin-emu/fix-compilation-without-xrandr-support.patch
@@ -0,0 +1,34 @@
+From 7bb9f502cf4505d7f30b8f0a3303e05464fafe44 Mon Sep 17 00:00:00 2001
+From: Shiz <hi@shiz.me>
+Date: Sat, 29 Jun 2019 02:31:24 +0200
+Subject: [PATCH] Core/UICommon: fix compilation without X RandR support
+
+---
+ Source/Core/UICommon/UICommon.cpp | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp
+index 935d07b043f..27fe62307d1 100644
+--- a/Source/Core/UICommon/UICommon.cpp
++++ b/Source/Core/UICommon/UICommon.cpp
+@@ -367,16 +367,15 @@ bool TriggerSTMPowerEvent()
+ return true;
+ }
+
+-#if defined(HAVE_XRANDR) && HAVE_X11
+-void EnableScreenSaver(Window win, bool enable)
+-#else
++#if !defined(HAVE_XRANDR) || !HAVE_XRANDR
+ void EnableScreenSaver(bool enable)
+-#endif
++{
++#else
++void EnableScreenSaver(Window win, bool enable)
+ {
+ // Inhibit the screensaver. Depending on the operating system this may also
+ // disable low-power states and/or screen dimming.
+
+-#if defined(HAVE_X11) && HAVE_X11
+ if (Config::Get(Config::MAIN_DISABLE_SCREENSAVER))
+ {
+ X11Utils::InhibitScreensaver(win, !enable);