Commit a2c3e554 authored by Daniel Stone's avatar Daniel Stone

Don't loop forever if we can't find our interfaces

Just try one wl_display_roundtrip, rather than doing them in a tight
loop until we fall off the face of the planet.
parent 14f4c750
......@@ -638,8 +638,13 @@ main (int argc,
/* Wait until we have been notified about the compositor,
* shell, and shell helper objects */
while (!desktop->output || !desktop->shell || !desktop->helper)
if (!desktop->output || !desktop->shell || !desktop->helper)
wl_display_roundtrip (desktop->display);
if (!desktop->output || !desktop->shell || !desktop->helper)
{
fprintf (stderr, "could not find output, shell or helper modules\n");
return -1;
}
desktop->grid_visible = FALSE;
desktop->system_visible = FALSE;
......
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