aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2021-11-15 13:32:52 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2021-11-18 17:47:19 +0100
commit5865af75cf8029cc703cda36b68daafcb658c97b (patch)
tree0446444369c63c05109ffab3c027127ac19da17f /sway/desktop/output.c
parentcontainer: fix surface_is_popup() (diff)
downloadsway-5865af75cf8029cc703cda36b68daafcb658c97b.tar.gz
sway-5865af75cf8029cc703cda36b68daafcb658c97b.tar.zst
sway-5865af75cf8029cc703cda36b68daafcb658c97b.zip
sway: create wlr_renderer and wlr_allocator
wlroots now required the compositor to create its own wlr_renderer and wlr_allocator to initialize the wlr_output
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index edec71ad..cd9fd3a6 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -850,6 +850,12 @@ void handle_new_output(struct wl_listener *listener, void *data) {
850 return; 850 return;
851 } 851 }
852 852
853 if (!wlr_output_init_render(wlr_output, server->allocator,
854 server->renderer)) {
855 sway_log(SWAY_ERROR, "Failed to init output render");
856 return;
857 }
858
853 struct sway_output *output = output_create(wlr_output); 859 struct sway_output *output = output_create(wlr_output);
854 if (!output) { 860 if (!output) {
855 return; 861 return;