summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-04 00:43:27 +0100
committerwm4 <wm4@nowhere>2013-11-04 00:43:27 +0100
commit3813b137962d083410c31c896b62b3c21e066df9 (patch)
treee6f52ba8f5276d22f3ddfa5cc34e99216d46011c /video
parentf7b2d644eff7fae2d74259ae14ec2b05b00c9b9b (diff)
downloadmpv-3813b137962d083410c31c896b62b3c21e066df9.tar.bz2
mpv-3813b137962d083410c31c896b62b3c21e066df9.tar.xz
fix weird DPMS->EXT replacement
Diffstat (limited to 'video')
-rw-r--r--video/out/x11_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 54cd063505..09492a2294 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -50,7 +50,7 @@
#include <X11/extensions/scrnsaver.h>
#endif
-#if HAVE_XEXT
+#if HAVE_XDPMS
#include <X11/extensions/dpms.h>
#endif
@@ -1552,7 +1552,7 @@ static void saver_on(struct vo_x11_state *x11)
x11->screensaver_off = 0;
if (xss_suspend(mDisplay, False))
return;
-#if HAVE_XEXT
+#if HAVE_XDPMS
if (x11->dpms_disabled) {
int nothing;
if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) {
@@ -1587,7 +1587,7 @@ static void saver_off(struct vo_x11_state *x11)
x11->screensaver_off = 1;
if (xss_suspend(mDisplay, True))
return;
-#if HAVE_XEXT
+#if HAVE_XDPMS
if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) {
BOOL onoff;
CARD16 state;