summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-17 21:32:11 +0200
committerwm4 <wm4@nowhere>2014-05-17 21:36:34 +0200
commitc2039572b7de18d45c62f81c3d648143f22280b9 (patch)
treec259af4665b7f22067735b6abeea71b27e14e3e3 /video/out/x11_common.h
parentb4b68ebf5a02270fd3f5ae2460a4077d3f8bd929 (diff)
downloadmpv-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.h3
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;