mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
simple-im: Use the appropriate enum names to xkb calls
XKB_KEYMAP_COMPILE_NO_FLAGS and XKB_CONTEXT_NO_FLAGS are both defined as 0 so no functional change here, just improved code clarity. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Jan Arne Petersen <janarne@gmail.com>
This commit is contained in:
parent
8224171c22
commit
4c66a9031c
|
@ -192,7 +192,7 @@ input_method_keyboard_keymap(void *data,
|
||||||
xkb_keymap_new_from_string(keyboard->xkb_context,
|
xkb_keymap_new_from_string(keyboard->xkb_context,
|
||||||
map_str,
|
map_str,
|
||||||
XKB_KEYMAP_FORMAT_TEXT_V1,
|
XKB_KEYMAP_FORMAT_TEXT_V1,
|
||||||
0);
|
XKB_KEYMAP_COMPILE_NO_FLAGS);
|
||||||
|
|
||||||
munmap(map_str, size);
|
munmap(map_str, size);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
@ -503,7 +503,7 @@ main(int argc, char *argv[])
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
simple_im.xkb_context = xkb_context_new(0);
|
simple_im.xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||||
if (simple_im.xkb_context == NULL) {
|
if (simple_im.xkb_context == NULL) {
|
||||||
fprintf(stderr, "Failed to create XKB context\n");
|
fprintf(stderr, "Failed to create XKB context\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue