diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-05-13 15:24:27 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-05-14 11:49:54 +1000 |
commit | a2086bba6602408efda3b65ce3930111f049adcb (patch) | |
tree | 1f0fd4f96402f1c4d356d8de05447e4dd12a305a | |
parent | 6b64d39ab7bcbe749d44d303e18c2cdac3c93987 (diff) | |
download | weston-a2086bba6602408efda3b65ce3930111f049adcb.tar.gz |
libweston: replace 0 with the enum value for the xkb init flags
No functional changes, this is cosmetics only.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | clients/window.c | 2 | ||||
-rw-r--r-- | 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; |