fix weird DPMS->EXT replacement

This commit is contained in:
wm4 2013-11-04 00:43:27 +01:00
parent f7b2d644ef
commit 3813b13796
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@
#include <X11/extensions/scrnsaver.h> #include <X11/extensions/scrnsaver.h>
#endif #endif
#if HAVE_XEXT #if HAVE_XDPMS
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif #endif
@ -1552,7 +1552,7 @@ static void saver_on(struct vo_x11_state *x11)
x11->screensaver_off = 0; x11->screensaver_off = 0;
if (xss_suspend(mDisplay, False)) if (xss_suspend(mDisplay, False))
return; return;
#if HAVE_XEXT #if HAVE_XDPMS
if (x11->dpms_disabled) { if (x11->dpms_disabled) {
int nothing; int nothing;
if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) { if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) {
@ -1587,7 +1587,7 @@ static void saver_off(struct vo_x11_state *x11)
x11->screensaver_off = 1; x11->screensaver_off = 1;
if (xss_suspend(mDisplay, True)) if (xss_suspend(mDisplay, True))
return; return;
#if HAVE_XEXT #if HAVE_XDPMS
if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) { if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) {
BOOL onoff; BOOL onoff;
CARD16 state; CARD16 state;