Skip to content

Commit

Permalink
fix: respect floating shadow setting in layer rendering (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-6581 committed May 8, 2024
1 parent cec81c9 commit af98449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/rendered_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ impl<'w> FloatingLayer<'w> {
}

fn _draw_shadow(&self, root_canvas: &Canvas, path: &Path, settings: &RendererSettings) {
if !settings.floating_shadow {
return;
}

root_canvas.save();
// We clip using the Difference op to make sure that the shadow isn't rendered inside
// the window itself.
Expand Down

0 comments on commit af98449

Please sign in to comment.