test: use flag instead of hardcoded value in examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
diff --git a/test/interactive-evdev.c b/test/interactive-evdev.c
index 79da5ec..d10c82e 100644
--- a/test/interactive-evdev.c
+++ b/test/interactive-evdev.c
@@ -453,7 +453,8 @@ main(int argc, char *argv[])
goto err_ctx;
}
keymap = xkb_keymap_new_from_file(ctx, file,
- XKB_KEYMAP_FORMAT_TEXT_V1, 0);
+ XKB_KEYMAP_FORMAT_TEXT_V1,
+ XKB_KEYMAP_COMPILE_NO_FLAGS);
fclose(file);
}
else {
diff --git a/test/interactive-wayland.c b/test/interactive-wayland.c
index 736d03e..ab83e71 100644
--- a/test/interactive-wayland.c
+++ b/test/interactive-wayland.c
@@ -339,7 +339,8 @@ kbd_keymap(void *data, struct wl_keyboard *wl_kbd, uint32_t format,
}
seat->keymap = xkb_keymap_new_from_buffer(seat->inter->ctx, buf, size - 1,
- XKB_KEYMAP_FORMAT_TEXT_V1, 0);
+ XKB_KEYMAP_FORMAT_TEXT_V1,
+ XKB_KEYMAP_COMPILE_NO_FLAGS);
munmap(buf, size);
close(fd);
if (!seat->keymap) {
diff --git a/test/interactive-x11.c b/test/interactive-x11.c
index f279dd0..a2369ff 100644
--- a/test/interactive-x11.c
+++ b/test/interactive-x11.c
@@ -123,7 +123,8 @@ update_keymap(struct keyboard *kbd)
struct xkb_state *new_state;
new_keymap = xkb_x11_keymap_new_from_device(kbd->ctx, kbd->conn,
- kbd->device_id, 0);
+ kbd->device_id,
+ XKB_KEYMAP_COMPILE_NO_FLAGS);
if (!new_keymap)
goto err_out;