Commit 42f800175d9db71cba1b5df00c89b07d5b1cb806

Ran Benita 2017-05-27T12:23:27

Merge pull request #48 from namandixit/patch-1 Fixed a minor bug in error detection in Wayland test

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/interactive-wayland.c b/test/interactive-wayland.c
index c28fbb6..6fd57b8 100644
--- a/test/interactive-wayland.c
+++ b/test/interactive-wayland.c
@@ -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;
 	}