diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-13 17:31:10 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 17:31:10 +0400 |
commit | 85ec03633b2f44e8fc59113305d505024dce207f (patch) | |
tree | d379561cf13f4a96a76ae522e9e821d34e52e7c9 | |
parent | bd2dfa7a5586d418e7dae5aac3aa904668feadf1 (diff) | |
download | alacritty-85ec03633b2f44e8fc59113305d505024dce207f.tar.gz alacritty-85ec03633b2f44e8fc59113305d505024dce207f.zip |
Fix message bar damage
Fixes #7224.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/display/mod.rs | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8467cb8b..48a65132 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `window.startup_mode` applied to window again when creating new tab - Crash when leaving search after resize - Cursor being hidden after reaching cursor blinking timeout +- Message bar content getting stuck after closing with multiple messages on Wayland ### Removed diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs index 1d993af8..878f03e1 100644 --- a/alacritty/src/display/mod.rs +++ b/alacritty/src/display/mod.rs @@ -941,12 +941,18 @@ impl Display { MessageType::Warning => config.colors.normal.yellow, }; + let x = 0; + let width = size_info.width() as i32; + let height = (size_info.height() - y) as i32; let message_bar_rect = - RenderRect::new(0., y, size_info.width(), size_info.height() - y, bg, 1.); + RenderRect::new(x as f32, y, width as f32, height as f32, bg, 1.); // Push message_bar in the end, so it'll be above all other content. rects.push(message_bar_rect); + // Always damage message bar, since it could have messages of the same size in it. + self.damage_rects.push(DamageRect { x, y: y as i32, width, height }); + // Draw rectangles. self.renderer.draw_rects(&size_info, &metrics, rects); |