From fd0f4ea54f5f79a01697226ebf103d357e90a1bc Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sun, 17 Dec 2023 00:59:06 +0100 Subject: [PATCH] Readds check if the floating child is in a container for xray (#250) --- sway/desktop/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 43abc81c..fba13b37 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -452,7 +452,7 @@ static void render_surface_iterator(struct sway_output *output, wlr_box_transform(&monitor_box, &monitor_box, wlr_output_transform_invert(wlr_output->transform), monitor_box.width, monitor_box.height); struct blur_stencil_data stencil_data = { &fx_texture, &src_box, matrix }; - bool should_optimize_blur = view ? !container_is_floating(view->container) || config->blur_xray : false; + bool should_optimize_blur = view ? !container_is_floating_or_child(view->container) || config->blur_xray : false; render_blur(should_optimize_blur, output, output_damage, &dst_box, &opaque_region, &deco_data, &stencil_data); } @@ -832,7 +832,7 @@ static void render_saved_view(struct sway_view *view, struct sway_output *output wlr_box_transform(&monitor_box, &monitor_box, wlr_output_transform_invert(wlr_output->transform), monitor_box.width, monitor_box.height); struct blur_stencil_data stencil_data = { &fx_texture, &saved_buf->source_box, matrix }; - bool should_optimize_blur = !container_is_floating(view->container) || config->blur_xray; + bool should_optimize_blur = !container_is_floating_or_child(view->container) || config->blur_xray; render_blur(should_optimize_blur, output, damage, &dst_box, &opaque_region, &deco_data, &stencil_data);