aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor
diff options
context:
space:
mode:
Diffstat (limited to 'examples/compositor')
-rw-r--r--examples/compositor/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/compositor/main.c b/examples/compositor/main.c
index fdc4ed67..4c6e213d 100644
--- a/examples/compositor/main.c
+++ b/examples/compositor/main.c
@@ -178,9 +178,13 @@ int main() {
break;
}
- compositor_run(&compositor);
+ wl_display_run(compositor.display);
- wlr_wl_shell_destroy(state.wl_shell);
- wlr_xdg_shell_v6_destroy(state.xdg_shell);
close(state.keymap_fd);
+ wlr_seat_destroy(state.wl_seat);
+ wlr_data_device_manager_destroy(state.data_device_manager);
+ wlr_xdg_shell_v6_destroy(state.xdg_shell);
+ wlr_wl_shell_destroy(state.wl_shell);
+ wlr_renderer_destroy(state.renderer);
+ compositor_fini(&compositor);
}