[PATCH weston] compositor: fix initializing idle timeout at startup
Bill Spitzak
spitzak at gmail.com
Mon Sep 21 09:31:04 PDT 2015
On Fri, Sep 18, 2015 at 4:14 AM, Egor Starkov <egor.starkov at ge.com> wrote:
>
> + if (idle_time < 0)
> + weston_config_section_get_int(section, "idle-time",
> &idle_time, -1);
> + if (idle_time < 0)
> + idle_time = 300; /* default idle timeout, in seconds */
>
You can just pass 300 as the default value rather than -1 and the if
statement, ie:
if (idle_time < 0)
weston_config_section_get_int(section, "idle-time", &idle_time, 300);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150921/86608134/attachment.html>
More information about the wayland-devel
mailing list