summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-05-04 21:33:45 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-04 21:39:31 +0300
commit457456edb3d287af7a9de3de9e3563a2f77aebf9 (patch)
treed5f116290bc2edd4231d47d821265ae401fcecd6
parentfcd71e034d378921e0408a69dedcd8d0f4836401 (diff)
main: Use bool for weston_config_section_get_bool()
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
-rw-r--r--src/ivi-compositor.h2
-rw-r--r--src/main.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index dab9fa6..cd7cbdd 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -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 {
diff --git a/src/main.c b/src/main.c
index 2b12a7b..09c4036 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);