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;