aboutsummaryrefslogtreecommitdiff
path: root/examples/tablet.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tablet.c')
-rw-r--r--examples/tablet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/tablet.c b/examples/tablet.c
index 4aec5a72..4b565d3d 100644
--- a/examples/tablet.c
+++ b/examples/tablet.c
@@ -158,6 +158,11 @@ int main(int argc, char *argv[]) {
wlr_log(L_ERROR, "Could not start compositor, OOM");
exit(EXIT_FAILURE);
}
+ 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);
wlr_renderer_destroy(state.renderer);