diff options
author | wm4 <wm4@nowhere> | 2014-05-17 21:32:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-17 21:36:34 +0200 |
commit | c2039572b7de18d45c62f81c3d648143f22280b9 (patch) | |
tree | c259af4665b7f22067735b6abeea71b27e14e3e3 /video/out/x11_common.h | |
parent | b4b68ebf5a02270fd3f5ae2460a4077d3f8bd929 (diff) | |
download | mpv-c2039572b7de18d45c62f81c3d648143f22280b9.tar.bz2 mpv-c2039572b7de18d45c62f81c3d648143f22280b9.tar.xz |
x11: make screensaver code more compact, change DPMS handling
Reduces some code-duplication.
Just call DPMSEnable/DPMSDisable, instead of DPMSForceLevel when
reenabling DPMS. "Force" sounds evil, and messing with DPMS is already
pretty evil. I'm not even sure that we should.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index b2264563c7..0b4a58325f 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -40,8 +40,7 @@ struct vo_x11_state { int ws_height; struct mp_rect screenrc; - int screensaver_off; - int dpms_disabled; + bool screensaver_enabled; double screensaver_time_last; XIM xim; |