From 0bb574239d3b164596677bf4cec371ff0671dc4f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 5 Sep 2022 15:50:21 +0200 Subject: compositor: pass version in wlr_compositor_create This allows wlroots to support newer versions of the interface without breaking the API. --- examples/fullscreen-shell.c | 2 +- examples/output-layers.c | 2 +- examples/scene-graph.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/fullscreen-shell.c b/examples/fullscreen-shell.c index cba5a4cb..ff8f60c1 100644 --- a/examples/fullscreen-shell.c +++ b/examples/fullscreen-shell.c @@ -211,7 +211,7 @@ int main(int argc, char *argv[]) { server.allocator = wlr_allocator_autocreate(server.backend, server.renderer); - wlr_compositor_create(server.wl_display, server.renderer); + wlr_compositor_create(server.wl_display, 5, server.renderer); server.output_layout = wlr_output_layout_create(); diff --git a/examples/output-layers.c b/examples/output-layers.c index 2ccfafe1..69c97b11 100644 --- a/examples/output-layers.c +++ b/examples/output-layers.c @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) { server.renderer); struct wlr_compositor *compositor = - wlr_compositor_create(server.wl_display, server.renderer); + wlr_compositor_create(server.wl_display, 5, server.renderer); wlr_xdg_shell_create(server.wl_display, 1); diff --git a/examples/scene-graph.c b/examples/scene-graph.c index 5821c906..3d75164b 100644 --- a/examples/scene-graph.c +++ b/examples/scene-graph.c @@ -167,7 +167,7 @@ int main(int argc, char *argv[]) { server.renderer); struct wlr_compositor *compositor = - wlr_compositor_create(server.display, server.renderer); + wlr_compositor_create(server.display, 5, server.renderer); wlr_xdg_shell_create(server.display, 2); -- cgit v1.2.3