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/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index f8f5f707a5..d1e46ef4c6 100644 --- a/options/options.c +++ b/options/options.c @@ -540,7 +540,7 @@ const m_option_t mp_opts[] = { OPT_CHOICE_OR_INT("cursor-autohide", cursor_autohide_delay, 0, 0, 30000, ({"no", -1}, {"always", -2})), OPT_FLAG("cursor-autohide-fs-only", cursor_autohide_fs, 0), - OPT_FLAG("stop-screensaver", stop_screensaver, 0), + OPT_FLAG("stop-screensaver", stop_screensaver, UPDATE_SCREENSAVER), OPT_STRING("heartbeat-cmd", heartbeat_cmd, 0, .deprecation_message = "use Lua scripting instead"), -- cgit v1.2.3