aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.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/tree/container.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/tree/container.c')
-rw-r--r--sway/tree/container.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 943d3d53..eb88b47e 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -547,8 +547,7 @@ static void render_titlebar_text_texture(struct sway_output *output,
547 cairo_surface_flush(surface); 547 cairo_surface_flush(surface);
548 unsigned char *data = cairo_image_surface_get_data(surface); 548 unsigned char *data = cairo_image_surface_get_data(surface);
549 int stride = cairo_image_surface_get_stride(surface); 549 int stride = cairo_image_surface_get_stride(surface);
550 struct wlr_renderer *renderer = wlr_backend_get_renderer( 550 struct wlr_renderer *renderer = output->wlr_output->renderer;
551 output->wlr_output->backend);
552 *texture = wlr_texture_from_pixels( 551 *texture = wlr_texture_from_pixels(
553 renderer, DRM_FORMAT_ARGB8888, stride, width, height, data); 552 renderer, DRM_FORMAT_ARGB8888, stride, width, height, data);
554 cairo_surface_destroy(surface); 553 cairo_surface_destroy(surface);