[PATCH weston] compositor: remove incorrect idle timer initialization

Egor Starkov egor.starkov at ge.com
Wed Sep 23 08:29:46 PDT 2015


weston_compositor_create() should just create idle timer but
not arm it, because idle-time setting is not read at this point

Signed-off-by: Egor Starkov <egor.starkov at ge.com>
---
 src/compositor.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index cbef4dc..125afd5 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -4527,7 +4527,6 @@ weston_compositor_create(struct wl_display *display, void *user_data)
 
 	loop = wl_display_get_event_loop(ec->wl_display);
 	ec->idle_source = wl_event_loop_add_timer(loop, idle_handler, ec);
-	wl_event_source_timer_update(ec->idle_source, ec->idle_time * 1000);
 
 	ec->input_loop = wl_event_loop_create();
 
-- 
1.8.3.1



More information about the wayland-devel mailing list