From 39fc5e1deb0c5753e7123529e4dd5c750aed1e8d Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 2 Oct 2016 12:33:34 +0200 Subject: player: make --stop-screensaver runtime-changeable Move the screensaver enable/disable determination to a central place, and call it if the stop-screensaver property is changed. Also, do not stop the screensaver when in idle mode (i.e. no file is loaded). Fixes #3615. --- options/m_option.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options/m_option.h') diff --git a/options/m_option.h b/options/m_option.h index 69113bbd8c..d784d8f54d 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -390,7 +390,8 @@ struct m_option { #define UPDATE_INPUT (1 << 13) // mostly --input-* options #define UPDATE_AUDIO (1 << 14) // --audio-channels etc. #define UPDATE_PRIORITY (1 << 15) // --priority (Windows-only) -#define UPDATE_OPT_LAST (1 << 15) +#define UPDATE_SCREENSAVER (1 << 16) // --stop-screensaver +#define UPDATE_OPT_LAST (1 << 16) // All bits between _FIRST and _LAST (inclusive) #define UPDATE_OPTS_MASK \ -- cgit v1.2.3