aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 2b937540..11f67f9b 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -333,6 +333,11 @@ int main(int argc, char *argv[]) {
wlr_cursor_set_xcursor(state.cursor, state.xcursor);
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);