summaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorSimon Zeni <[email protected]>2021-11-15 13:32:52 -0500
committerSimon Ser <[email protected]>2021-11-18 17:47:19 +0100
commit5865af75cf8029cc703cda36b68daafcb658c97b (patch)
tree0446444369c63c05109ffab3c027127ac19da17f /sway/desktop/output.c
parentcbecc5cbaed6b30c995d2c245def458e383b4e38 (diff)
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) {
return;
}
+ if (!wlr_output_init_render(wlr_output, server->allocator,
+ server->renderer)) {
+ sway_log(SWAY_ERROR, "Failed to init output render");
+ return;
+ }
+
struct sway_output *output = output_create(wlr_output);
if (!output) {
return;