aboutsummaryrefslogtreecommitdiff
path: root/examples/simple.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-28 19:06:41 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-28 19:06:41 -0400
commit033036712ade73a872f1034ddb47235be11a74aa (patch)
treeecae511da6a408177369858ac43d200bae427472 /examples/simple.c
parent2850a9360b23eaf27f6437a889b13bdcbe506863 (diff)
parente4ad534ab41b01a08b6b4f19aa47805f6040f7b4 (diff)
Merge branch 'rootston'
Diffstat (limited to 'examples/simple.c')
-rw-r--r--examples/simple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/simple.c b/examples/simple.c
index 7c3cc496..ba1ac289 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -9,6 +9,7 @@
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_output.h>
+#include <wlr/util/log.h>
#include <xkbcommon/xkbcommon.h>
#include "shared.h"
@@ -52,6 +53,11 @@ int main() {
.output_frame_cb = handle_output_frame,
};
compositor_init(&compositor);
+ if (!wlr_backend_start(compositor.backend)) {
+ wlr_log(L_ERROR, "Failed to start backend");
+ wlr_backend_destroy(compositor.backend);
+ exit(1);
+ }
wl_display_run(compositor.display);
compositor_fini(&compositor);
}