mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 04:31:39 +00:00
fix weird DPMS->EXT replacement
This commit is contained in:
parent
f7b2d644ef
commit
3813b13796
@ -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, ¬hing, ¬hing)) {
|
||||
@ -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, ¬hing, ¬hing)) {
|
||||
BOOL onoff;
|
||||
CARD16 state;
|
||||
|
Loading…
Reference in New Issue
Block a user