From f27d993243848727249e083f3dc13c471ca856e1 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Mon, 21 Aug 2023 16:56:40 +0300 Subject: clip status line instead of overflowing --- src/bar.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/bar.rs b/src/bar.rs index b0c9e83..eeb633d 100644 --- a/src/bar.rs +++ b/src/bar.rs @@ -288,6 +288,9 @@ fn render_blocks( full_width: f64, full_height: f64, ) { + context.rectangle(offset_left, 0.0, full_width - offset_left, full_height); + context.clip(); + struct LogialBlock<'a> { blocks: Vec<&'a ComputedBlock>, delta: f64, @@ -406,6 +409,8 @@ fn render_blocks( blocks_width -= w; } } + + context.reset_clip(); } pub fn compute_tag_label(label: &str, config: &Config) -> ComputedText { -- cgit v1.3.1