diff options
| -rw-r--r-- | shell/maynard.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/maynard.c b/shell/maynard.c index a6c7e6d..85da0fc 100644 --- a/shell/maynard.c +++ b/shell/maynard.c @@ -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; |
