aboutsummaryrefslogtreecommitdiff
path: root/examples/rotation.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-24 14:12:56 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-24 14:12:56 -0400
commit61e451ea1b36435341d02ae34548bd0ea3abdd57 (patch)
tree6dc756c8024b2ec679b5d70087538504a4f2d5c5 /examples/rotation.c
parentb84d59403fa8649817e84c486e701508f191c949 (diff)
Move keyboard logic to wlr_{keyboard,seat}
Diffstat (limited to 'examples/rotation.c')
-rw-r--r--examples/rotation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/rotation.c b/examples/rotation.c
index 2596e492..4f8c7b45 100644
--- a/examples/rotation.c
+++ b/examples/rotation.c
@@ -146,6 +146,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);