Readds check if the floating child is in a container for xray (#250)
This commit is contained in:
parent
ac52c2874e
commit
fd0f4ea54f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue