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.rama...@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

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to