From 61e451ea1b36435341d02ae34548bd0ea3abdd57 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 24 Sep 2017 14:12:56 -0400 Subject: Move keyboard logic to wlr_{keyboard,seat} --- examples/output-layout.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/output-layout.c') diff --git a/examples/output-layout.c b/examples/output-layout.c index be542630..759bf048 100644 --- a/examples/output-layout.c +++ b/examples/output-layout.c @@ -203,6 +203,11 @@ int main(int argc, char *argv[]) { wlr_texture_upload_pixels(state.cat_texture, WL_SHM_FORMAT_ABGR8888, cat_tex.width, cat_tex.width, cat_tex.height, cat_tex.pixel_data); + 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_texture_destroy(state.cat_texture); -- cgit v1.2.3