Fixed a minor bug in error detection in Wayland test
authorNaman Dixit <ndixit26@gmail.com>
Sat, 27 May 2017 09:15:26 +0000 (09:15 +0000)
committerGitHub <noreply@github.com>
Sat, 27 May 2017 09:15:26 +0000 (09:15 +0000)
test/interactive-wayland.c

index c28fbb6..6fd57b8 100644 (file)
@@ -345,7 +345,7 @@ kbd_keymap(void *data, struct wl_keyboard *wl_kbd, uint32_t format,
        }
 
        seat->state = xkb_state_new(seat->keymap);
-       if (!seat->keymap) {
+       if (!seat->state) {
                fprintf(stderr, "Failed to create XKB state!\n");
                return;
        }