From 7a235d282b1c470f86b588271a851e059d959132 Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Wed, 30 Oct 2024 17:47:59 -0400 Subject: [PATCH] fix: compilation error --- sway/desktop/render.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index a43797bb..e2237ef3 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -257,10 +257,11 @@ void render_box_shadow(struct fx_render_context *ctx, const struct wlr_box *_box transform_output_box(&box, wlr_output); transform_output_box(&shadow_box, wlr_output); - struct shadow_data shadow_data = { - .enabled = true, - .offset_x = offset_x, - .offset_y = offset_y, + struct fx_render_box_shadow_options shadow_options = { + .box = shadow_box, + .window_box = box, + .clip = &damage, + .corner_radius = corner_radius, .color = { .r = color[0], .g = color[1], @@ -269,13 +270,6 @@ void render_box_shadow(struct fx_render_context *ctx, const struct wlr_box *_box }, .blur_sigma = blur_sigma, }; - struct fx_render_box_shadow_options shadow_options = { - .shadow_box = shadow_box, - .clip_box = box, - .clip = &damage, - .shadow_data = &shadow_data, - .corner_radius = corner_radius, - }; fx_render_pass_add_box_shadow(ctx->pass, &shadow_options); damage_finish: