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>
This commit is contained in:
+1
-1
@@ -6244,7 +6244,7 @@ display_create(int *argc, char *argv[])
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
d->xkb_context = xkb_context_new(0);
|
d->xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||||
if (d->xkb_context == NULL) {
|
if (d->xkb_context == NULL) {
|
||||||
fprintf(stderr, "Failed to create XKB context\n");
|
fprintf(stderr, "Failed to create XKB context\n");
|
||||||
free(d);
|
free(d);
|
||||||
|
|||||||
+1
-1
@@ -3120,7 +3120,7 @@ weston_compositor_set_xkb_rule_names(struct weston_compositor *ec,
|
|||||||
struct xkb_rule_names *names)
|
struct xkb_rule_names *names)
|
||||||
{
|
{
|
||||||
if (ec->xkb_context == NULL) {
|
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) {
|
if (ec->xkb_context == NULL) {
|
||||||
weston_log("failed to create XKB context\n");
|
weston_log("failed to create XKB context\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user