Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
};
wl_registry_add_listener(wlRegistry, ®istry_listener, &wlCompositor);
};
wl_registry_add_listener(wlRegistry, ®istry_listener, &wlCompositor);
- wl_display_dispatch(wlDisplay);
- wl_display_roundtrip(wlDisplay);
+
+ if (wl_display_roundtrip(wlDisplay) == -1 || wl_display_roundtrip(wlDisplay) == -1)
+ {
+ throw std::runtime_error("wl_display error");
+ }
wlSurfaces.reserve(10);
for (int i = 0; i < wlSurfaces.capacity(); ++i)
wlSurfaces.reserve(10);
for (int i = 0; i < wlSurfaces.capacity(); ++i)