[PATCH] compositor: "idle-time" option inside "core" section

mchalain [marc.chalain@gmail.com] marc.chalain at gmail.com
Fri Jun 21 01:54:59 PDT 2013


From: mchalain <marc.chalain at gmail.com>

 it reads the value of "idle-time" inside weston.ini
 to set the compositor->idle_time.
 This value continues to be updated by --idle-time
 argument. The manpage of weston.ini explains the use
 of this option

---
 weston/man/weston.ini.man |    4 +++-
 weston/src/compositor.c   |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/weston/man/weston.ini.man b/weston/man/weston.ini.man
index c3e5747..ae94d9b 100644
--- a/weston/man/weston.ini.man
+++ b/weston/man/weston.ini.man
@@ -103,8 +103,10 @@ directory are:
 .BR xwayland.so
 .fi
 .RE
-.RS
 .PP
+.TP 7
+.BI "idle-time=" value
+sets time before to fall in idle as --idle-time argument (integer).
 
 .SH "SHELL SECTION"
 The
diff --git a/weston/src/compositor.c b/weston/src/compositor.c
index 42011f5..f6aec7b 100644
--- a/weston/src/compositor.c
+++ b/weston/src/compositor.c
@@ -3278,6 +3278,8 @@ int main(int argc, char *argv[])
 	section = weston_config_get_section(config, "core", NULL, NULL);
 	weston_config_section_get_string(section, "modules",
 					 &modules, "desktop-shell.so");
+	weston_config_section_get_int(section, "idle-time",
+					 &idle_time, idle_time);
 
 	backend_init = load_module(backend, "backend_init");
 	if (!backend_init)
-- 
1.7.9.5



More information about the wayland-devel mailing list