From cd3ed6e1d527709c564554a81e57b1e6a3ff5a92 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 27 Nov 2022 15:39:27 -0500 Subject: [PATCH] compositor: Use output renderer instead of global state --- sway/tree/container.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sway/tree/container.c b/sway/tree/container.c index b86a9925..54f11dc2 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -1101,10 +1102,10 @@ static void set_fullscreen(struct sway_container *con, bool enable) { // TODO: add wlroots helpers for all of this stuff const struct wlr_drm_format_set *renderer_formats = - wlr_renderer_get_dmabuf_texture_formats(server.renderer); + wlr_renderer_get_dmabuf_texture_formats(output->wlr_output->renderer); assert(renderer_formats); - int renderer_drm_fd = wlr_renderer_get_drm_fd(server.renderer); + int renderer_drm_fd = wlr_renderer_get_drm_fd(output->wlr_output->renderer); int backend_drm_fd = wlr_backend_get_drm_fd(wlr_output->backend); if (renderer_drm_fd < 0 || backend_drm_fd < 0) { return;