main: Use bool for weston_config_section_get_bool() 61/24461/1
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 4 May 2020 18:33:45 +0000 (21:33 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 4 May 2020 18:39:31 +0000 (21:39 +0300)
weston_config_section_get_bool() uses bool instead of integer from
libweston8.

Bug-AGL: SPEC-3352

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I5a3f661824f494f0ba4a02eca5a41b25a460214e

src/ivi-compositor.h
src/main.c

index dab9fa6..cd7cbdd 100644 (file)
@@ -67,7 +67,7 @@ struct ivi_compositor {
        struct wl_global *agl_shell;
        struct wl_global *agl_shell_desktop;
        struct {
-               int activate_apps_by_default;   /* switches once xdg top level has been 'created' */
+               bool activate_apps_by_default;  /* switches once xdg top level has been 'created' */
        } quirks;
 
        struct {
index 2b12a7b..09c4036 100644 (file)
@@ -541,7 +541,7 @@ load_drm_backend(struct ivi_compositor *ivi, int *argc, char *argv[])
        struct weston_config_section *section;
        int use_current_mode = 0;
        int use_pixman = 0;
-       int use_shadow;
+       bool use_shadow;
        int ret;
 
        const struct weston_option options[] = {
@@ -587,7 +587,7 @@ windowed_parse_common_options(struct ivi_compositor *ivi, int *argc, char *argv[
                              bool *use_pixman, bool *fullscreen, int *output_count)
 {
        struct weston_config_section *section;
-       int pixman;
+       bool pixman;
        int fs = 0;
 
        const struct weston_option options[] = {
@@ -798,8 +798,8 @@ compositor_init_config(struct weston_compositor *compositor,
        struct xkb_rule_names xkb_names;
        struct weston_config_section *section;
        int repaint_msec;
-       int vt_switching;
-       int require_input;
+       bool vt_switching;
+       bool require_input;
 
        /* agl-compositor.ini [keyboard] */
        section = weston_config_get_section(config, "keyboard", NULL, NULL);