Change-Id: Ia14bdc29262f7aab22ed47a200f0f3114d73ea1b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
wl_registry_add_listener(display.registry, ®istry_listener, &display);
wl_display_roundtrip(display.display);
- if (display.shm) {
+ if (!display.shm) {
fprintf(stderr, "Couldn't find wl_shm\n");
return -1;
}
- if (display.compositor) {
+ if (!display.compositor) {
fprintf(stderr, "Couldn't find wl_compositor\n");
return -1;
}
- if (display.shell) {
+ if (!display.shell) {
fprintf(stderr, "Couldn't find pepper_shell\n");
return -1;
}