Commit 324d8465 authored by Manuel Stoeckl's avatar Manuel Stoeckl Committed by Simon Ser

clients/simple-egl: Exit when display has an error

Check return values for wl_display_dispatch_* functions, so that
the program stops running when the compositor that it is connected
to crashes.
Signed-off-by: default avatarManuel Stoeckl <>
parent 7216d4c4
Pipeline #55756 passed with stages
in 1 minute and 27 seconds
......@@ -866,9 +866,9 @@ main(int argc, char **argv)
* queued up as a side effect. */
while (running && ret != -1) {
if (window.wait_for_configure) {
ret = wl_display_dispatch(display.display);
} else {
ret = wl_display_dispatch_pending(display.display);
redraw(&window, NULL, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment