aboutsummaryrefslogtreecommitdiff
path: root/examples/output-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/output-layout.c')
-rw-r--r--examples/output-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index 565b21a6..0dcbc1f8 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -198,10 +198,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);
- compositor_run(&compositor);
+ wl_display_run(compositor.display);
wlr_texture_destroy(state.cat_texture);
wlr_renderer_destroy(state.renderer);
+ compositor_fini(&compositor);
wlr_output_layout_destroy(state.layout);