[PATCH weston] compositor: remove systemd-notify.h

2015-09-29 Thread Egor Starkov
Systemd notifications support was converted into loadable module, so systemd-notify.h header is not needed. Signed-off-by: Egor Starkov --- Makefile.am | 4 +--- src/main.c | 1 - src/systemd-notify.h | 47 --- 3 files changed, 1

[PATCH weston v2] compositor: systemd notifications support

2015-09-25 Thread Egor Starkov
.e. "modules=systemd-notify.so". Watchdog timeout equals to half of timeout defined by "WATCHDOG_USEC" environment variable, which is set by "WatchdogSec=" setting in service file. Signed-off-by: Egor Starkov Reviewed-by: Pekka Paalanen --- Makefile.am | 19 +

[PATCH weston] compositor: systemd notifications support

2015-09-24 Thread Egor Starkov
gSec=" setting in service file. Signed-off-by: Egor Starkov Reviewed-by: Pekka Paalanen --- Makefile.am | 10 - configure.ac | 13 ++ src/main.c | 3 ++ src/systemd-notify.c | 120 +

[PATCH weston] compositor: systemd notifications support

2015-09-24 Thread Egor Starkov
can be enabled by configuration flag, so it doesn't unexpectedly change weston's behaviour. Egor Starkov (1): compositor: systemd notifications support Makefile.am | 10 - configure.ac | 13 ++ src/main.c | 3 ++ src/systemd-noti

[PATCH weston] compositor: remove incorrect idle timer initialization

2015-09-23 Thread Egor Starkov
Remove idle timer first update in weston_compositor_create() since idle_time variable is not set at this point. Idle timer is armed properly later in weston_compositor_wake(). Egor Starkov (1): compositor: remove incorrect idle timer initialization src/compositor.c | 1 - 1 file changed, 1

[PATCH weston] compositor: remove incorrect idle timer initialization

2015-09-23 Thread Egor Starkov
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 --- src/compositor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index cbef4dc..125afd5 100644

[PATCH weston v2] compositor: fix initializing idle timeout at startup

2015-09-22 Thread Egor Starkov
. --- Changes since v1: Fixed reviewer's comment about simplifying of applying default value for 'idle-time' setting. Egor Starkov (1): compositor: fix initializing idle timeout at startup src/compositor.c | 3 ++- src/compositor.h | 2 +- src/main.c | 11 --- 3 f

[PATCH weston v2] compositor: fix initializing idle timeout at startup

2015-09-22 Thread Egor Starkov
Read and store idle-time setting before calling weston_compositor_create that makes initial setting of idle timeout. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=92030 Signed-off-by: Egor Starkov --- src/compositor.c | 3 ++- src/compositor.h | 2 +- src/main.c | 11

[PATCH weston] compositor: fix initializing idle timeout at startup

2015-09-21 Thread Egor Starkov
Read and store idle-time setting before calling weston_compositor_create that makes initial setting of idle timeout. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=92030 Signed-off-by: Egor Starkov --- src/compositor.c | 3 ++- src/compositor.h | 2 +- src/main.c | 13

[PATCH weston] compositor: fix initializing idle timeout at startup

2015-09-21 Thread Egor Starkov
idle-time setting is currently read and set after weston_compositor_create is called. This causes an issue that screen never goes dark after weston started until first input event. Change is fixing that by reading idle-time setting before timer initialization. Egor Starkov (1): compositor: fix