[PATCH] screensaver: apply settings from weston.ini

Pekka Paalanen ppaalanen at gmail.com
Fri Nov 22 00:45:00 PST 2013


On Fri, 22 Nov 2013 10:35:57 +0530
Karthik Ramanan <a0393906 at ti.com> wrote:

> 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 <a0393906 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);

Nack.

There are two different timeouts, compare the weston command line
option -i and weston.ini option 'duration', see the respective
man-pages.

If you want to set the -i option via weston.ini, you have to add a new
key for it.


Thanks,
pq


More information about the wayland-devel mailing list