diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-06-09 19:31:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 16:31:08 +0000 |
commit | 90552e3e7f8f085919a39435a8a68b3a2f633e54 (patch) | |
tree | 711534a54f813a8aad9fe2c3015478ba5ad03d31 /alacritty_terminal | |
parent | 6dc670cde0c136e28c71d4ebe67c5c8bb9df65b1 (diff) | |
download | alacritty-90552e3e7f8f085919a39435a8a68b3a2f633e54.tar.gz alacritty-90552e3e7f8f085919a39435a8a68b3a2f633e54.zip |
Fix flickering during resize on Wayland
This also fixes an issue of windows not being rendered while resizing.
Fixes #6069.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/term/color.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs index a9494e7a..1cfdec6b 100644 --- a/alacritty_terminal/src/term/color.rs +++ b/alacritty_terminal/src/term/color.rs @@ -20,8 +20,8 @@ pub struct Rgb { } impl Rgb { - /// Implementation of W3C's luminance algorithm: - /// https://www.w3.org/TR/WCAG20/#relativeluminancedef + /// Implementation of W3C's luminance + /// [algorithm](https://www.w3.org/TR/WCAG20/#relativeluminancedef) fn luminance(self) -> f64 { let channel_luminance = |channel| { let channel = channel as f64 / 255.; |