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>
#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;