aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/output-layout.c2
-rw-r--r--meson.build2
-rw-r--r--rootston/main.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index 7b847a3b..bdc8d352 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -284,7 +284,7 @@ int main(int argc, char *argv[]) {
wl_display_run(display);
wlr_texture_destroy(state.cat_texture);
- wlr_renderer_destroy(state.renderer);
wlr_output_layout_destroy(state.layout);
+ wl_display_destroy(state.display);
}
diff --git a/meson.build b/meson.build
index 597236ca..b78eea01 100644
--- a/meson.build
+++ b/meson.build
@@ -46,7 +46,7 @@ endif
# Avoid wl_buffer deprecation warnings
add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
-wayland_server = dependency('wayland-server')
+wayland_server = dependency('wayland-server', version: '>=1.15')
wayland_client = dependency('wayland-client')
wayland_egl = dependency('wayland-egl')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
diff --git a/rootston/main.c b/rootston/main.c
index cecdb23d..07a41d5d 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -72,6 +72,7 @@ int main(int argc, char **argv) {
}
wl_display_run(server.wl_display);
+ wl_display_destroy_clients(server.wl_display);
wl_display_destroy(server.wl_display);
return 0;
}