From a2086bba6602408efda3b65ce3930111f049adcb Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 13 May 2020 15:24:27 +1000 Subject: [PATCH] libweston: replace 0 with the enum value for the xkb init flags No functional changes, this is cosmetics only. Signed-off-by: Peter Hutterer --- clients/window.c | 2 +- libweston/input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index 5a75bd40..ca7e62d0 100644 --- a/clients/window.c +++ b/clients/window.c @@ -6244,7 +6244,7 @@ display_create(int *argc, char *argv[]) return NULL; } - d->xkb_context = xkb_context_new(0); + d->xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); if (d->xkb_context == NULL) { fprintf(stderr, "Failed to create XKB context\n"); free(d); diff --git a/libweston/input.c b/libweston/input.c index 28dcb0b9..e348a56b 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -3120,7 +3120,7 @@ weston_compositor_set_xkb_rule_names(struct weston_compositor *ec, struct xkb_rule_names *names) { if (ec->xkb_context == NULL) { - ec->xkb_context = xkb_context_new(0); + ec->xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); if (ec->xkb_context == NULL) { weston_log("failed to create XKB context\n"); return -1;