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;