backends: use the enum name instead of a literal 0

No functional change.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1144
This commit is contained in:
Peter Hutterer 2019-11-14 12:22:27 +10:00
parent 41130b08eb
commit 7fa7c2aeb7

View File

@ -111,7 +111,7 @@ meta_keymap_native_init (MetaKeymapNative *keymap)
names.variant = option_xkb_variant;
names.options = option_xkb_options;
ctx = xkb_context_new (0);
ctx = xkb_context_new (XKB_CONTEXT_NO_FLAGS);
g_assert (ctx);
keymap->keymap = xkb_keymap_new_from_names (ctx, &names, 0);
xkb_context_unref (ctx);