[PATCH] screensaver: apply settings from weston.ini

Karthik Ramanan karthik.ramanan at ti.com
Thu Nov 21 21:01:06 PST 2013


The screensaver duration from weston.ini is not taking
effect, the default idletime that is hardcoded is the
what kicks the idle_handler and locks the screen. It
is hardcoded to 300 seconds. This change makes
screensaver configurable from the ini file.

Signed-off-by: Karthik Ramanan <karthik.ramanan at ti.com>
---
 src/shell.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/shell.c b/src/shell.c
index 82c3cd8..aa13ecf 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -532,6 +532,7 @@ shell_configuration(struct desktop_shell *shell)
 					 "path", &shell->screensaver.path, NULL);
 	weston_config_section_get_int(section, "duration", &duration, 60);
 	shell->screensaver.duration = duration * 1000;
+	shell->compositor->idle_time = duration;
 
 	section = weston_config_get_section(shell->compositor->config,
 					    "shell", NULL, NULL);
-- 
1.8.1.2



More information about the wayland-devel mailing list