summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-18 22:16:53 +0200
committerwm4 <wm4@nowhere>2014-05-18 22:16:53 +0200
commitd9bd5bacc109aae0b70e879bf2c8dcc93d34bc2b (patch)
treec129fca6ac56c1e544f66e4b60f9eba30a9d8d35 /video/out/x11_common.h
parent42a51310c1a72805fe6c01438366354641d6d6ce (diff)
downloadmpv-d9bd5bacc109aae0b70e879bf2c8dcc93d34bc2b.tar.bz2
mpv-d9bd5bacc109aae0b70e879bf2c8dcc93d34bc2b.tar.xz
x11: never enable DPMS if we didn't disable it
Enabling DPMS even though you disabled it globally is pretty unfriendly, so don't do it. Instead, we only disable DPMS if it was enabled, and only enable it if we disabled it ourselves. The other way should never happen (disabling DPMS permanently), unless mpv crashes during playback.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index 0b4a58325f..15a86978ec 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -41,6 +41,7 @@ struct vo_x11_state {
struct mp_rect screenrc;
bool screensaver_enabled;
+ bool dpms_touched;
double screensaver_time_last;
XIM xim;