<div dir="ltr">You have right, it's the smallest of my patches, and the worst.<br><br>[PATCH] [compositor]: add "idle-time" entry support in "core"<br> section of weston.ini<br><br>---<br> src/compositor.c |    2 ++<br>
 1 file changed, 2 insertions(+)<br><br>diff --git a/src/compositor.c b/src/compositor.c<br>index 099600d..2002812 100644<br>--- a/src/compositor.c<br>+++ b/src/compositor.c<br>@@ -3277,6 +3277,8 @@ int main(int argc, char *argv[])<br>
     section = weston_config_get_section(config, "core", NULL, NULL);<br>     weston_config_section_get_string(section, "modules",<br>                      &modules, "desktop-shell.so");<br>
+    weston_config_section_get_int(section, "idle-time",<br>+                     &idle_time, idle_time);<br> <br>     backend_init = load_module(backend, "backend_init");<br>     if (!backend_init)<br>
-- <br>1.7.9.5<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/10 Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 7 Jun 2013 12:39:21 +0200<br>
Marc Chalain <<a href="mailto:marc.chalain@gmail.com">marc.chalain@gmail.com</a>> wrote:<br>
<br>
> this patch use the "idle-time" entry inside the "core" section of<br>
> weston.ini to set the named value.<br>
<br>
</div></div>Hi Marc,<br>
<br>
does this actually work?<br>
<br>
I think the backend init calls weston_compositor_init(), where your<br>
code then loads the idle-time from config, and then later in main()<br>
ec->idle_time is unconditionally set. To me it looks like the config<br>
setting gets always overwritten.<br>
<br>
Also patch the man pages for this change, please.<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div><br></div>