Commit 0f1cae0cc482575c71d29d6241115886ebf25dec

Nils 2020-03-25T08:43:41

test: use flag instead of hardcoded value in examples

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;