From c2039572b7de18d45c62f81c3d648143f22280b9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 17 May 2014 21:32:11 +0200 Subject: 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. --- video/out/x11_common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/out/x11_common.h') 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; -- cgit v1.2.3